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

Commita4ab4d9

Browse files
committed
Fix extenesion initializaion
1 parent35fa7a4 commita4ab4d9

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

‎vops.c

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,6 +1825,19 @@ vops_expression_tree_mutator(Node *node, void *context)
18251825
ctx->countall=NULL;
18261826
ctx->has_vector_aggregates= false;
18271827

1828+
if (vops_bool_oid==InvalidOid) {
1829+
Oidprofile[2];
1830+
vops_bool_oid=LookupTypeNameOid(NULL,makeTypeName("vops_bool"), false);
1831+
profile[0]=vops_bool_oid;
1832+
profile[1]=vops_bool_oid;
1833+
filter_oid=LookupFuncName(list_make1(makeString("filter")),1,profile, false);
1834+
vops_and_oid=LookupFuncName(list_make1(makeString("vops_bool_and")),2,profile, false);
1835+
vops_or_oid=LookupFuncName(list_make1(makeString("vops_bool_or")),2,profile, false);
1836+
vops_not_oid=LookupFuncName(list_make1(makeString("vops_bool_not")),1,profile, false);
1837+
count_oid=LookupFuncName(list_make1(makeString("count")),0,profile, false);
1838+
countall_oid=LookupFuncName(list_make1(makeString("countall")),0,profile, false);
1839+
}
1840+
18281841
node= (Node*)query_tree_mutator((Query*)node,
18291842
vops_expression_tree_mutator,
18301843
context,
@@ -1928,18 +1941,6 @@ static void vops_post_parse_analysis_hook(ParseState *pstate, Query *query)
19281941
if (post_parse_analyze_hook_next) {
19291942
post_parse_analyze_hook_next(pstate,query);
19301943
}
1931-
if (vops_bool_oid==InvalidOid) {
1932-
Oidprofile[2];
1933-
vops_bool_oid=LookupTypeNameOid(NULL,makeTypeName("vops_bool"), false);
1934-
profile[0]=vops_bool_oid;
1935-
profile[1]=vops_bool_oid;
1936-
filter_oid=LookupFuncName(list_make1(makeString("filter")),1,profile, false);
1937-
vops_and_oid=LookupFuncName(list_make1(makeString("vops_bool_and")),2,profile, false);
1938-
vops_or_oid=LookupFuncName(list_make1(makeString("vops_bool_or")),2,profile, false);
1939-
vops_not_oid=LookupFuncName(list_make1(makeString("vops_bool_not")),1,profile, false);
1940-
count_oid=LookupFuncName(list_make1(makeString("count")),0,profile, false);
1941-
countall_oid=LookupFuncName(list_make1(makeString("countall")),0,profile, false);
1942-
}
19431944
(void)query_tree_mutator(query,vops_expression_tree_mutator,&ctx,QTW_DONT_COPY_QUERY);
19441945
}
19451946

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp