pgsql: Fix deparsing FETCH FIRST ROWS WITH TIES

2025-05-19 Thread Heikki Linnakangas
Fix deparsing FETCH FIRST ROWS WITH TIES In the grammar, is a c_expr, which accepts only a limited set of simple constants and expressions without parens. The deparsing logic didn't quite match the grammar rule, and failed to use parens e.g. for "5::bigint". To fix, always surround the expressi

pgsql: Fix deparsing FETCH FIRST ROWS WITH TIES

2025-05-19 Thread Heikki Linnakangas
Fix deparsing FETCH FIRST ROWS WITH TIES In the grammar, is a c_expr, which accepts only a limited set of integer literals and simple expressions without parens. The deparsing logic didn't quite match the grammar rule, and failed to use parens e.g. for "5::bigint". To fix, always surround the e

pgsql: Fix deparsing FETCH FIRST ROWS WITH TIES

2025-05-19 Thread Heikki Linnakangas
Fix deparsing FETCH FIRST ROWS WITH TIES In the grammar, is a c_expr, which accepts only a limited set of integer literals and simple expressions without parens. The deparsing logic didn't quite match the grammar rule, and failed to use parens e.g. for "5::bigint". To fix, always surround the e

pgsql: Fix deparsing FETCH FIRST ROWS WITH TIES

2025-05-19 Thread Heikki Linnakangas
Fix deparsing FETCH FIRST ROWS WITH TIES In the grammar, is a c_expr, which accepts only a limited set of integer literals and simple expressions without parens. The deparsing logic didn't quite match the grammar rule, and failed to use parens e.g. for "5::bigint". To fix, always surround the e

pgsql: Fix deparsing FETCH FIRST ROWS WITH TIES

2025-05-19 Thread Heikki Linnakangas
Fix deparsing FETCH FIRST ROWS WITH TIES In the grammar, is a c_expr, which accepts only a limited set of integer literals and simple expressions without parens. The deparsing logic didn't quite match the grammar rule, and failed to use parens e.g. for "5::bigint". To fix, always surround the e

pgsql: Fix deparsing FETCH FIRST ROWS WITH TIES

2025-05-19 Thread Heikki Linnakangas
Fix deparsing FETCH FIRST ROWS WITH TIES In the grammar, is a c_expr, which accepts only a limited set of integer literals and simple expressions without parens. The deparsing logic didn't quite match the grammar rule, and failed to use parens e.g. for "5::bigint". To fix, always surround the e