]> git.ipfire.org Git - thirdparty/postgresql.git/commit
SQL/JSON: Fix some obsolete comments.
authorAmit Langote <amitlan@postgresql.org>
Fri, 28 Jun 2024 06:09:59 +0000 (15:09 +0900)
committerAmit Langote <amitlan@postgresql.org>
Thu, 4 Jul 2024 07:17:10 +0000 (16:17 +0900)
commit7768b6569de95de7517bd6520acbe6e599fc6601
treea5bef084d046e71b8557a532f1a538b66ae969e3
parent54a7b21b3a9dc4c8be5f7fec47e435ce5b1772bb
SQL/JSON: Fix some obsolete comments.

JSON_OBJECT(), JSON_OBJETAGG(), JSON_ARRAY(), and JSON_ARRAYAGG()
added in 7081ac46ace are not transformed into direct calls to
user-defined functions as the comments claim. Fix by mentioning
instead that they are transformed into JsonConstructorExpr nodes,
which may call them, for example, for the *AGG() functions.

Reported-by: Alexander Lakhin <exclusion@gmail.com>
Discussion: https://postgr.es/m/058c856a-e090-ac42-ff00-ffe394f52a87%40gmail.com
Backpatch-through: 16
src/backend/parser/parse_expr.c