-
Notifications
You must be signed in to change notification settings - Fork 22
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
Support Varchar(MAX) #188
Support Varchar(MAX) #188
Conversation
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.
Thanks for contributing this @rafimuhammad01! 🙏 Good job figuring out the various layers involved in this change.
Code looks good; I only had a few minor comments.
go/vt/sqlparser/sql.y
Outdated
%type <sqlVal> length_opt column_comment ignore_number_opt | ||
%type <sqlVal> var_length_opt column_comment ignore_number_opt |
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.
There's some duplication here that would be good to simplify:
%type <sqlVal> length_opt column_comment ignore_number_opt | |
%type <sqlVal> var_length_opt column_comment ignore_number_opt | |
%type <sqlVal> var_length_opt length_opt column_comment ignore_number_opt |
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.
I don't know if this possible in yacc since I'm new with it. Thanks for the feedback! 🍻
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.
Nice work; these changes look great. Thank you for working with us on this contribution! 🙏
I'll get this merged into main next and let it work its way into go-mysql-server.
related to dolthub/dolt#2261