Skip to content

Commit 0e5f0e0

Browse files
committed
[PGPRO-4224] Make compile on v13 (LogicalTapeSetCreate changes). Silence waring in switch().
Tags: rum
1 parent 4e2a49f commit 0e5f0e0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/rumsort.c

+4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@
4040
#endif
4141

4242
#if PG_VERSION_NUM >= 110000
43+
#if PG_VERSION_NUM >= 130000
44+
#define LogicalTapeSetCreate(X) LogicalTapeSetCreate(X, false, NULL, NULL, 1)
45+
#else
4346
#define LogicalTapeSetCreate(X) LogicalTapeSetCreate(X, NULL, NULL, 1)
47+
#endif
4448
#define LogicalTapeFreeze(X, Y) LogicalTapeFreeze(X, Y, NULL)
4549
#endif
4650

src/rumtsquery.c

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ make_query_item_wrap(QueryItem *item, QueryItemWrap *parent, bool not)
108108
}
109109
case OP_PHRASE:
110110
elog(ERROR, "Indexing of phrase tsqueries isn't supported yet");
111+
break;
111112
default:
112113
elog(ERROR, "Invalid tsquery operator");
113114
}

0 commit comments

Comments
 (0)