1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-03 09:13:20 +03:00
Files
postgres/src/test/regress/sql
Dean Rasheed a93e2a1e25 Fix JsonExpr deparsing to quote variable names in the PASSING clause.
When deparsing a JsonExpr, variable names in the PASSING clause were
not quoted. However, since they are parsed as ColLabel tokens, some
variable names require double quotes to ensure that they are properly
interpreted. Fix by using quote_identifier() in the deparsing code.

This oversight was limited to the SQL/JSON query functions
JSON_EXISTS(), JSON_QUERY(), and JSON_VALUE().

Back-patch to v17, where these functions were added.

Dean Rasheed, reviewed by Tom Lane.

Discussion: https://postgr.es/m/CAEZATCXTpAS%3DncfLNTZ7YS6O5puHeLg_SUYAit%2Bcs7wsrd9Msg%40mail.gmail.com
2025-01-12 13:35:12 +00:00
..
2024-01-31 15:02:28 +09:00
2024-07-19 11:52:32 -05:00
2024-10-07 10:56:16 -05:00
2024-07-02 10:43:12 +02:00
2024-02-28 15:17:23 +04:00
2024-08-12 10:35:06 -05:00
2024-04-18 21:28:07 +02:00
2024-04-16 16:21:31 +12:00