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

Commit524aaa7

Browse files
committed
Provide compatibilty with 10.6
1 parent2b4c168 commit524aaa7

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

‎vops.c

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3583,7 +3583,7 @@ vops_substitute_tables_with_projections(char const* queryString, Query *query)
35833583
&&bms_is_subset(pullvar_ctx.otherVars,scalarAttrs))/* variables used in other clauses can be only scalar */
35843584
{
35853585
List*parsetree_list;
3586-
#ifPG_VERSION_NUM>=110000
3586+
#ifPG_VERSION_NUM>=100006
35873587
RawStmt*parsetree;
35883588
#else
35893589
Node*parsetree;
@@ -3598,7 +3598,7 @@ vops_substitute_tables_with_projections(char const* queryString, Query *query)
35983598
MemoryContextSwitchTo(spi_memctx);
35993599
break;
36003600
}
3601-
#ifPG_VERSION_NUM>=110000
3601+
#ifPG_VERSION_NUM>=100006
36023602
parsetree=linitial_node(RawStmt,parsetree_list);
36033603
select= (SelectStmt*)parsetree->stmt;
36043604
#else
@@ -3642,7 +3642,7 @@ vops_substitute_tables_with_projections(char const* queryString, Query *query)
36423642
PG_TRY();
36433643
{
36443644
Query*subst=parse_analyze(parsetree,queryString,NULL,0
3645-
#ifPG_VERSION_NUM>=110000
3645+
#ifPG_VERSION_NUM>=100006
36463646
,NULL
36473647
#endif
36483648
);
@@ -3723,6 +3723,15 @@ static void vops_explain_hook(Query *query,
37233723
ParamListInfoparams,
37243724
QueryEnvironment*queryEnv)
37253725
{
3726+
#elif PG_VERSION_NUM>=100006
3727+
staticvoidvops_explain_hook(Query*query,
3728+
intcursorOptions,
3729+
IntoClause*into,
3730+
ExplainState*es,
3731+
constchar*queryString,
3732+
ParamListInfoparams)
3733+
{
3734+
QueryEnvironment*queryEnv=NULL;
37263735
#else
37273736
staticvoidvops_explain_hook(Query*query,
37283737
IntoClause*into,
@@ -3760,7 +3769,7 @@ static void vops_explain_hook(Query *query,
37603769

37613770
/* run it (if needed) and produce output */
37623771
ExplainOnePlan(plan,into,es,queryString,params,
3763-
#ifPG_VERSION_NUM>=110000
3772+
#ifPG_VERSION_NUM>=100006
37643773
queryEnv,
37653774
#endif
37663775
&planduration);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp