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

Commit37472ee

Browse files
l-wangtvesely
andcommitted
Fix incompatibility with Postgres 13 devel
Co-authored-by: Taylor Vesely <tvesely@pivotal.io>
1 parentf52add9 commit37472ee

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

‎deparse.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,7 +1777,11 @@ deparseArrayRef(ArrayRef *node, deparse_expr_cxt *context)
17771777
{
17781778
deparseExpr(lfirst(lowlist_item),context);
17791779
appendStringInfoChar(buf,':');
1780+
#ifPG_VERSION_NUM>=130000
1781+
lowlist_item=lnext(node->reflowerindexpr,lowlist_item);
1782+
#else
17801783
lowlist_item=lnext(lowlist_item);
1784+
#endif
17811785
}
17821786
deparseExpr(lfirst(uplist_item),context);
17831787
appendStringInfoChar(buf,']');
@@ -1840,7 +1844,11 @@ deparseFuncExpr(FuncExpr *node, deparse_expr_cxt *context)
18401844
{
18411845
if (!first)
18421846
appendStringInfoString(buf,", ");
1847+
#ifPG_VERSION_NUM>=130000
1848+
if (use_variadic&&lnext(node->args,arg)==NULL)
1849+
#else
18431850
if (use_variadic&&lnext(arg)==NULL)
1851+
#endif
18441852
appendStringInfoString(buf,"VARIADIC ");
18451853
deparseExpr((Expr*)lfirst(arg),context);
18461854
first= false;
@@ -2168,7 +2176,11 @@ deparseAggref(Aggref *node, deparse_expr_cxt *context)
21682176
first= false;
21692177

21702178
/* Add VARIADIC */
2179+
#ifPG_VERSION_NUM>=130000
2180+
if (use_variadic&&lnext(node->args,arg)==NULL)
2181+
#else
21712182
if (use_variadic&&lnext(arg)==NULL)
2183+
#endif
21722184
appendStringInfoString(buf,"VARIADIC ");
21732185

21742186
deparseExpr((Expr*)n,context);

‎vops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ static void insert_tuple(Datum* values, bool* nulls)
11851185
HeapTupletup=heap_form_tuple(RelationGetDescr(rel),values,nulls);
11861186
#ifPG_VERSION_NUM>=120000
11871187
ExecStoreHeapTuple(tup,slot, true);
1188-
simple_table_insert(rel,slot);
1188+
simple_table_tuple_insert(rel,slot);
11891189
#else
11901190
ExecStoreTuple(tup,slot,InvalidBuffer, true);
11911191
simple_heap_insert(rel,slot->tts_tuple);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp