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

   I still need to finish the other stacks I started in 
https://github.com/apache/datafusion-sqlparser-rs/pull/2886 but this one seemed 
a quick one for a change. It wasn't and it also turned out to be a stack, but 
at least everything was rather trivial.
   
   `CREATE TABLE t (c NATIONAL CHARACTER(4))` fails with `Expected: ',' or ')' 
after column definition, found: CHARACTER`, and `CAST('ab' AS NATIONAL 
CHARACTER(4))` fails the same way.
   
   `parse_data_type` now reads it into `DataType::NationalCharacter`, which 
prints back as written, the same way `CHARACTER VARYING` and `CHAR VARYING` are 
kept apart. `NATIONAL` only starts the type when `CHARACTER` follows it, so a 
column or type named `national` parses as before.


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