Support expression in fetch
clause
#19952
Labels
component/frontend
Protocol, parsing, binder.
difficulty/medium
Issues that need some knowledge of the whole system
good first issue
Good for newcomers
help wanted
Issues that need help from contributors
Milestone
https://github.com/postgres/postgres/blob/REL_17_2/src/backend/parser/gram.y#L13233
For example,
This is valid in PostgreSQL. When we see this
row
keyword, it should be part of thefetch first [n] row
syntax wheren
is omitted, but it may be mistakenly treated as part of therow(field0, field1)
expression because we will attempt to parse an expression (instead of a numerical constant) afterfirst
.What is the actual parsing behavior when this commit sees this SQL?
Originally posted by @xiangjinwu in #19834 (comment)
The text was updated successfully, but these errors were encountered: