MySQL: Add support for unsigned numeric types#2031
Merged
iffyio merged 1 commit intoapache:mainfrom Sep 19, 2025
Merged
Conversation
…types Adds support for MySQL's deprecated UNSIGNED keyword syntax for some numeric types. This includes: - DECIMAL UNSIGNED, DEC UNSIGNED - FLOAT UNSIGNED - DOUBLE UNSIGNED - REAL UNSIGNED, DOUBLE PRECISION UNSIGNED Also, allow FLOAT to accept precision and scale, not just precision. docs: https://dev.mysql.com/doc/refman/8.4/en/numeric-type-syntax.html
mvzink
approved these changes
Sep 16, 2025
Contributor
mvzink
left a comment
There was a problem hiding this comment.
Seems good to me; only thing I might suggest is checking how these types behave (or don't) in the context of CAST.
iffyio
approved these changes
Sep 19, 2025
Contributor
iffyio
left a comment
There was a problem hiding this comment.
LGTM! Thanks @MohamedAbdeen21!
ayman-sigma
pushed a commit
to sigmacomputing/sqlparser-rs
that referenced
this pull request
Feb 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for MySQL's deprecated UNSIGNED keyword syntax for some numeric types. This includes:
Also, allow FLOAT to accept precision and scale, not just precision.
docs: https://dev.mysql.com/doc/refman/8.4/en/numeric-type-syntax.html