Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c53efdf

Browse files
author
Nikita Glukhov
committed
Remove handling of JSON parsing errors in JSON_TABLE
1 parent 8173736 commit c53efdf

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/backend/utils/adt/ruleutils.c

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10536,24 +10536,7 @@ get_json_table(TableFunc *tf, deparse_context *context, bool showimplicit)
1053610536

1053710537
appendContextKeyword(context, "", 0, 0, 0);
1053810538

10539-
get_rule_expr(jexpr->raw_expr, context, showimplicit);
10540-
10541-
if (jexpr->format->format != JS_FORMAT_DEFAULT)
10542-
{
10543-
appendStringInfoString(buf,
10544-
jexpr->format->format == JS_FORMAT_JSONB ?
10545-
" FORMAT JSONB" : " FORMAT JSON");
10546-
10547-
if (jexpr->format->encoding != JS_ENC_DEFAULT)
10548-
{
10549-
const char *encoding =
10550-
jexpr->format->encoding == JS_ENC_UTF16 ? "UTF16" :
10551-
jexpr->format->encoding == JS_ENC_UTF32 ? "UTF32" :
10552-
"UTF8";
10553-
10554-
appendStringInfo(buf, " ENCODING %s", encoding);
10555-
}
10556-
}
10539+
get_rule_expr(jexpr->formatted_expr, context, showimplicit);
1055710540

1055810541
appendStringInfoString(buf, ", ");
1055910542

0 commit comments

Comments
 (0)