Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0d22987

Browse files
committed
Add a convenience routine makeFuncCall to reduce duplication.
David Fetter and Andrew Gierth, reviewed by Jeevan Chalke
1 parent3132a9b commit0d22987

File tree

5 files changed

+96
-351
lines changed

5 files changed

+96
-351
lines changed

‎src/backend/nodes/makefuncs.c

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,3 +508,28 @@ makeDefElemExtended(char *nameSpace, char *name, Node *arg,
508508

509509
returnres;
510510
}
511+
512+
/*
513+
* makeFuncCall -
514+
*
515+
* Initialize a FuncCall struct with the information every caller must
516+
* supply. Any non-default parameters have to be handled by the
517+
* caller.
518+
*
519+
*/
520+
521+
FuncCall*
522+
makeFuncCall(List*name,List*args,intlocation)
523+
{
524+
FuncCall*n=makeNode(FuncCall);
525+
n->funcname=name;
526+
n->args=args;
527+
n->location=location;
528+
n->agg_order=NIL;
529+
n->agg_star= FALSE;
530+
n->agg_distinct= FALSE;
531+
n->func_variadic= FALSE;
532+
n->over=NULL;
533+
returnn;
534+
}
535+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp