-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Varchar doesn't validate length #300
Comments
PRs are always very welcomed, but what kind of an expection are you going to throw? |
Yeah it should be when you try to make a DB valid value from |
The
VarCharColumnType
doesn't validate the length of the value to write to DB, since it doesn't overrideStringColumnType::nonNullValueToString
anderror
if the string is too long for the length. I'm not sure what the general policy is on trying to throw errors here (especially since some vendors like sqlite3) don't enforce any of this.Is this something you'd like to check (and potentially disable for sqlite3 connections)? Would you welcome a PR.
The text was updated successfully, but these errors were encountered: