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

   PostgreSQL marks constraints that child tables should not inherit with `NO 
INHERIT`, and `pg_dump` emits it for any schema using table inheritance. The 
parser rejected it in every position:
   
   ```sql
   ALTER TABLE docs ADD CONSTRAINT c CHECK (id > 0) NO INHERIT;
   -- Expected: end of statement, found: NO
   
   CREATE TABLE t (a INT, CONSTRAINT c CHECK (a > 0) NO INHERIT);
   -- Expected: ',' or ')' after column definition, found: NO
    ```
    
    Relevant doc: https://www.postgresql.org/docs/current/sql-createtable.html


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