lovasoa commented on issue #1660:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/issues/1660#issuecomment-2596908706

   This is because we currently allow `RETURNING` as an unquoted table alias 
identifier. Most DBs don't.
   
   ```sql
   select * from demo returning
   ```
   
   fails in
    - sqlite: `SQLITE_ERROR: sqlite3 result code 1: near "returning": syntax 
error` : 
https://sqliteonline.com/#sqltext=%23url-sqlite%3Ddb-sqlite%0D%0A%23tab-name%3DSQLite.3%0D%0Aselect%20*%20from%20demo%20returning
    - mariadb: `Help: Error 1064 You have an error in your SQL syntax; check 
the manual that corresponds to your MariaDB server version for the right syntax 
to use near 'returning' at line 1`
    - postgres: `Help: Error 42601 syntax error at or near "returning"`
   
   We should not allow `RETURNING` in that position either


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to