mirror of https://github.com/citusdata/citus.git
Ruleutils_17 Fix JsonExpr deparsing to emit QUOTES and WRAPPER correctly
Relevant PG commit: f6a2529920cff76cb6e37ea840122574404dde8bpull/7725/headf6a2529920
(cherry picked from commit661fcd6b57
)
parent
77e8d98b76
commit
d284ec5697
|
@ -5568,9 +5568,15 @@ get_json_expr_options(JsonExpr *jsexpr, deparse_context *context,
|
||||||
appendStringInfo(context->buf, " WITH CONDITIONAL WRAPPER");
|
appendStringInfo(context->buf, " WITH CONDITIONAL WRAPPER");
|
||||||
else if (jsexpr->wrapper == JSW_UNCONDITIONAL)
|
else if (jsexpr->wrapper == JSW_UNCONDITIONAL)
|
||||||
appendStringInfo(context->buf, " WITH UNCONDITIONAL WRAPPER");
|
appendStringInfo(context->buf, " WITH UNCONDITIONAL WRAPPER");
|
||||||
|
/* The default */
|
||||||
|
else if (jsexpr->wrapper == JSW_NONE || jsexpr->wrapper == JSW_UNSPEC)
|
||||||
|
appendStringInfo(context->buf, " WITHOUT WRAPPER");
|
||||||
|
|
||||||
if (jsexpr->omit_quotes)
|
if (jsexpr->omit_quotes)
|
||||||
appendStringInfo(context->buf, " OMIT QUOTES");
|
appendStringInfo(context->buf, " OMIT QUOTES");
|
||||||
|
/* The default */
|
||||||
|
else
|
||||||
|
appendStringInfo(context->buf, " KEEP QUOTES");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jsexpr->on_empty && jsexpr->on_empty->btype != default_behavior)
|
if (jsexpr->on_empty && jsexpr->on_empty->btype != default_behavior)
|
||||||
|
|
Loading…
Reference in New Issue