Skip to content

Commit 459fae5

Browse files
committed
Fix incompatibilities with most recent master
1 parent 87b9e42 commit 459fae5

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Diff for: tpch.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ create table vops_lineitem(
3131
l_linestatus vops_char not null
3232
);
3333

34-
create table vops_lineitem_projection(
34+
create table vops_lineitem_projection(
3535
l_shipdate vops_date not null,
3636
l_quantity vops_float4 not null,
3737
l_extendedprice vops_float4 not null,

Diff for: vops.c

+11-2
Original file line numberDiff line numberDiff line change
@@ -4631,7 +4631,12 @@ static void vops_explain_hook(Query *query,
46314631
{
46324632
(void)query_tree_mutator(query, vops_expression_tree_mutator, &var, QTW_DONT_COPY_QUERY);
46334633
}
4634-
plan = pg_plan_query(query, cursorOptions, params);
4634+
plan = pg_plan_query(query,
4635+
#if PG_VERSION_NUM>=130000
4636+
queryString,
4637+
#endif
4638+
cursorOptions,
4639+
params);
46354640

46364641
INSTR_TIME_SET_CURRENT(planduration);
46374642
INSTR_TIME_SUBTRACT(planduration, planstart);
@@ -4641,7 +4646,11 @@ static void vops_explain_hook(Query *query,
46414646
#if PG_VERSION_NUM>=100000
46424647
queryEnv,
46434648
#endif
4644-
&planduration);
4649+
&planduration
4650+
#if PG_VERSION_NUM>=130000
4651+
,NULL
4652+
#endif
4653+
);
46454654
}
46464655

46474656
static void reset_static_cache(void)

0 commit comments

Comments
 (0)