aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorAmit Langote <amitlan@postgresql.org>2024-09-06 12:53:01 +0900
committerAmit Langote <amitlan@postgresql.org>2024-09-06 12:53:01 +0900
commit4d7e24e0f4d05b546228488ccdc2848a80245ffb (patch)
treea0a13151abad5c10e261f9dfe39fccf5dca66983 /src/backend/parser/parse_expr.c
parent3a97460970f344660971ee75d7f5a181bf87f633 (diff)
downloadpostgresql-4d7e24e0f4d05b546228488ccdc2848a80245ffb.tar.gz
postgresql-4d7e24e0f4d05b546228488ccdc2848a80245ffb.zip
Revert recent SQL/JSON related commits
Reverts 68222851d5a8, 565caaa79af, and 3a97460970f, because a few BF animals didn't like one or all of them.
Diffstat (limited to 'src/backend/parser/parse_expr.c')
-rw-r--r--src/backend/parser/parse_expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c
index 36c1b7a88f2..56e413da9f5 100644
--- a/src/backend/parser/parse_expr.c
+++ b/src/backend/parser/parse_expr.c
@@ -4603,13 +4603,13 @@ transformJsonFuncExpr(ParseState *pstate, JsonFuncExpr *func)
}
/*
- * Assume EMPTY ARRAY ON ERROR when ON ERROR is not specified.
+ * Assume EMPTY ON ERROR when ON ERROR is not specified.
*
* ON EMPTY cannot be specified at the top level but it can be for
* the individual columns.
*/
jsexpr->on_error = transformJsonBehavior(pstate, func->on_error,
- JSON_BEHAVIOR_EMPTY_ARRAY,
+ JSON_BEHAVIOR_EMPTY,
jsexpr->returning);
break;