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

   Fixes #1987.
   
   ```sql
   INSERT INTO t SELECT 1 ON CONFLICT DO NOTHING;
   ```
   
   The parser treated `ON` as an implicit alias for `1` and then failed at 
`CONFLICT`. The fix leaves `ON CONFLICT` for the `INSERT` parser and preserves 
explicit aliases.
   
   The regression test covers PostgreSQL, Generic, and SQLite, including an 
incomplete conflict clause. [PostgreSQL `INSERT` 
syntax](https://www.postgresql.org/docs/17/sql-insert.html)
   
   I used Codex to investigate the bug and draft the fix, regression tests, and 
PR description.
   


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