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

Retain display width for TINYINT(1) #6688

Merged
merged 14 commits into from
Sep 20, 2023
Merged

Retain display width for TINYINT(1) #6688

merged 14 commits into from
Sep 20, 2023

Conversation

fulghum
Copy link
Contributor

@fulghum fulghum commented Sep 19, 2023

MySQL allows integer fields to specify a display width (e.g. TINYINT(1)). Dolt currently parses that information, but doesn't retain it anywhere. This PR changes that behavior to match MySQL and retain the display width setting so that it can be passed back to callers.

As of MySQL 8.1.0, the display width setting is ONLY retained for signed TINYINT fields and ONLY when the display width is set to 1.

Fixes: #6682

GMS PR: dolthub/go-mysql-server#2017

Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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.

No support for TINYINT(1)?
2 participants