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

   `ALTER SEQUENCE s SET SCHEMA other`, and every other form of the statement, 
fails with `Expected: one of VIEW or MATERIALIZED VIEW or ..., found: 
SEQUENCE`, because `parse_alter` has no `SEQUENCE` arm.
   
   This adds `Statement::AlterSequence`, which holds `IF EXISTS`, the sequence 
name and an `AlterSequenceOperation` whose first variant is `SetSchema`, shaped 
like the one of `ALTER COLLATION`.
   
   It is yet another first PR of a stack that adds the [`ALTER SEQUENCE` 
grammar](https://www.postgresql.org/docs/current/sql-altersequence.html) one 
operation at a time.
   
   For reference, the other syntax I slammed against today that I'll have to 
open a PR stack for is [`ALTER EXTENSION` 
grammar](https://www.postgresql.org/docs/current/sql-alterextension.html), I 
hope that after all of this heavy syntax lifting we will start to see *some* 
convergence.


-- 
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 `ALTER ... LucaCappelletti94 (via GitHub) via github

Reply via email to