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

   This PR lets `SQLiteDialect` parse type names made of several words or 
string literals in column definitions, `CAST` and `ALTER TABLE ... ADD`. Column 
constraints such as `NOT NULL`, `PRIMARY KEY` or `DEFAULT` still end the type 
name.
   
   ```sql
   CREATE TABLE t (a UNSIGNED BIG INT, b NATIVE CHARACTER(70), c 'text');
   SELECT CAST(a AS foo bar) FROM t;
   -- Previously: Expected: ',' or ')' after column definition, found: BIG
   ```
   
   SQLite accepts any sequence of names as a type, see 
[datatypes](https://www.sqlite.org/datatype3.html#affinity_name_examples).


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