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

   Dialects: PostgreSQL
   
   PostgreSQL's 
[`FETCH`](https://www.postgresql.org/docs/current/sql-fetch.html) accepts an 
optional direction, optional `FROM`/`IN`, and signed counts, which currently 
fail to parse:
   
   ```sql
   FETCH c;                -- Expected: a concrete value, found: c
   FETCH 1 c;              -- Expected FROM or IN
   FETCH FORWARD FROM c;   -- Expected: a concrete value, found: FROM
   FETCH -1 FROM c;        -- Expected: a concrete value, found: -
   ```
   
   Makes `FROM`/`IN` optional, defaults an omitted direction to `NEXT`, makes 
the `FORWARD`/`BACKWARD` count optional, and parses signed counts (no AST 
changes).
   
   Made with [Cursor](https://cursor.com)


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