-
Notifications
You must be signed in to change notification settings - Fork 63
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
Failure to parse DECIMAL(<scale>, <precision>) #228
Labels
bug
Something isn't working
Comments
dlurton
added a commit
that referenced
this issue
Mar 24, 2020
This sanity check threw an exception from SqlParser whenever a data type reference that included more than one argument was encountered. The check appears to have been completely erroneous from the start and on removivng it, no other modifications were needed. This commit also adds a few tests to SqlParserTests to cover this scenario and prevent regressions.
dlurton
added a commit
that referenced
this issue
Mar 25, 2020
This sanity check threw an exception from SqlParser whenever a data type reference that included more than one argument was encountered. The check appears to have been completely erroneous from the start and on removing it, no other modifications were needed. However, note that at this time we do not actually do anything with those arguments. At this time their presence is simply tolerated to improve SQL-92 compatibility. See #231 for one way we could use these arguments. This commit also adds a few tests to SqlParserTests to cover this scenario and prevent regressions.
dlurton
added a commit
that referenced
this issue
Mar 25, 2020
This sanity check threw an exception from SqlParser whenever a data type reference that included more than one argument was encountered. The check appears to have been completely erroneous from the start and on removing it, no other modifications were needed. However, note that at this time we do not actually do anything with those arguments. At this time their presence is simply tolerated to improve SQL-92 compatibility. See #231 for one way we could use these arguments. This commit also adds a few tests to SqlParserTests to cover this scenario and prevent regressions.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that
cast(foo as decimal(1))
works without issue however.Tasks outlined by this issue:
SqlParser
to parse multiple arguments forDECIMAL
andNUMERIC
when they are used with 2 arguments. (Also verify that these are the only two types that include more than one parameter.)SqlParserTests
for those types when used with more than one argument.The text was updated successfully, but these errors were encountered: