-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Handle Quotes in Default Column Values #1639
Conversation
7a15c40
to
6810b86
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Commented a couple potential supplements
Also, this might be a useful one to test on the Dolt side before merging. |
I have a bats test in my workspace for dolt that I wasn't convinced was necessary. I can get that in if you think it would be a good idea. |
Nah, the enginetests are sufficient. I just meant the Dolt storage layer can error in novel ways compared to the memory implementation. |
See Issue: dolthub/dolt#5411
Both Default values and check constraints are impacted by the fact that we write strings to storage without escaping the single quote character or backslash appropriately. This change encodes both and adds tests to verify correct behavior. Tests were added for procedures, views, and triggers, they they weren't impacted by this particular defect.