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

Commit c83cde3

Browse files
author
Nikita Glukhov
committed
Add SQL/JSON functions parsing
1 parent c35370f commit c83cde3

File tree

7 files changed

+450
-10
lines changed

7 files changed

+450
-10
lines changed

src/backend/nodes/makefuncs.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,21 @@ makeJsonValueExpr(Expr *expr, JsonFormat *format)
848848
return jve;
849849
}
850850

851+
/*
852+
* makeJsonBehavior -
853+
* creates a JsonBehavior node
854+
*/
855+
JsonBehavior *
856+
makeJsonBehavior(JsonBehaviorType type, Node *default_expr)
857+
{
858+
JsonBehavior *behavior = makeNode(JsonBehavior);
859+
860+
behavior->btype = type;
861+
behavior->default_expr = default_expr;
862+
863+
return behavior;
864+
}
865+
851866
/*
852867
* makeJsonEncoding -
853868
* converts JSON encoding name to enum JsonEncoding

0 commit comments

Comments
 (0)