LucaCappelletti94 opened a new pull request, #2557:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2557

   This PR lets `SQLiteDialect` parse signed, decimal and arbitrarily large 
numbers as type modifiers on single-word type names, keeping them verbatim. 
Plain unsigned modifiers such as `CHAR(10)` produce the same AST as before.
   
   ```sql
   CREATE TABLE t (a CHAR(+10), b VARCHAR(2.5), c INT(-1));
   SELECT CAST(a AS DECIMAL(99999999999999999999999, 2));
   -- Previously: Expected: literal int, found: +
   ```
   
   SQLite's [type name grammar](https://www.sqlite.org/syntax/type-name.html) 
takes a signed number in each modifier.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to