|
|
@ -3521,9 +3521,9 @@ makeJsonConstructorExpr(ParseState *pstate, JsonConstructorType type, |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Coerce to the RETURNING type and format, if needed. We abuse |
|
|
|
* Coerce to the RETURNING type and format, if needed. We abuse |
|
|
|
* CaseTestExpr here as placeholder to pass the result of either evaluating |
|
|
|
* CaseTestExpr here as placeholder to pass the result of either |
|
|
|
* 'fexpr' or whatever is produced by ExecEvalJsonConstructor() that is of |
|
|
|
* evaluating 'fexpr' or whatever is produced by ExecEvalJsonConstructor() |
|
|
|
* type JSON or JSONB to the coercion function. |
|
|
|
* that is of type JSON or JSONB to the coercion function. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
if (fexpr) |
|
|
|
if (fexpr) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -3632,6 +3632,7 @@ transformJsonArrayQueryConstructor(ParseState *pstate, |
|
|
|
colref->location = ctor->location; |
|
|
|
colref->location = ctor->location; |
|
|
|
|
|
|
|
|
|
|
|
agg->arg = makeJsonValueExpr((Expr *) colref, ctor->format); |
|
|
|
agg->arg = makeJsonValueExpr((Expr *) colref, ctor->format); |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* No formatting necessary, so set formatted_expr to be the same as |
|
|
|
* No formatting necessary, so set formatted_expr to be the same as |
|
|
|
* raw_expr. |
|
|
|
* raw_expr. |
|
|
|