Skip to content
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

Merged
merged 6 commits into from
Sep 15, 2022
Merged

Conversation

rafimuhammad01
Copy link

related to dolthub/dolt#2261

Copy link

@fulghum fulghum left a 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 Show resolved Hide resolved
Comment on lines 468 to 469
%type <sqlVal> length_opt column_comment ignore_number_opt
%type <sqlVal> var_length_opt column_comment ignore_number_opt
Copy link

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:

Suggested change
%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

Copy link
Author

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! 🍻

go/vt/sqlparser/sql.y Outdated Show resolved Hide resolved
@fulghum fulghum self-assigned this Sep 13, 2022
Copy link

@fulghum fulghum left a 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.

@fulghum fulghum merged commit 81df18d into dolthub:main Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants