mirror of https://github.com/citusdata/citus.git
Adds three different SQL/JSON values to ruleutils_15.c
Relevant PG commits: 606948b058dc16bce494270eea577011a602810e 49082c2cc3d8167cca70cfe697afb064710828capg15_onder_gpid
parent
66ea4e20e9
commit
405d06187f
|
@ -6842,7 +6842,10 @@ get_json_constructor_options(JsonConstructorExpr *ctor, StringInfo buf)
|
|||
if (ctor->unique)
|
||||
appendStringInfoString(buf, " WITH UNIQUE KEYS");
|
||||
|
||||
get_json_returning(ctor->returning, buf, true);
|
||||
if (!((ctor->type == JSCTOR_JSON_PARSE ||
|
||||
ctor->type == JSCTOR_JSON_SCALAR) &&
|
||||
ctor->returning->typid == JSONOID))
|
||||
get_json_returning(ctor->returning, buf, true);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -6856,6 +6859,15 @@ get_json_constructor(JsonConstructorExpr *ctor, deparse_context *context,
|
|||
|
||||
switch (ctor->type)
|
||||
{
|
||||
case JSCTOR_JSON_PARSE:
|
||||
funcname = "JSON";
|
||||
break;
|
||||
case JSCTOR_JSON_SCALAR:
|
||||
funcname = "JSON_SCALAR";
|
||||
break;
|
||||
case JSCTOR_JSON_SERIALIZE:
|
||||
funcname = "JSON_SERIALIZE";
|
||||
break;
|
||||
case JSCTOR_JSON_OBJECT:
|
||||
funcname = "JSON_OBJECT";
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue