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

   [PostgreSQL](https://www.postgresql.org/docs/current/sql-createtable.html) 
and 
[Redshift](https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_TABLE_NEW.html)
 list `LIKE` as one table element among columns and constraints, any number of 
times. Its position matters because PostgreSQL inserts the copied columns where 
the `LIKE` stands, so `(b int, LIKE a)` puts `b` first.
   
   `LIKE` is now parsed inside the column list, and 
`CreateTableLikeKind::Parenthesized` holds a `Vec<CreateTableLikeElement>`, 
each recording how many columns precede it so that `Display` writes it back in 
place.


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

  • [PR] PostgreSQL: Support `LIKE` ... LucaCappelletti94 (via GitHub) via github

Reply via email to