From eef5195f300bb9cf2864d48761c0db2ad93842c1 Mon Sep 17 00:00:00 2001 From: Amit Langote Date: Fri, 6 Sep 2024 12:51:26 +0900 Subject: Revert recent SQL/JSON related commits Reverts c88ce386c4d, 5067c230b8e, and e4e27976a68, because a few BF animals didn't like one or all of them. --- src/backend/parser/parse_expr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/parser/parse_expr.c') 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; -- cgit v1.2.3