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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy