Skip to content

Commit 1546c22

Browse files
PostgreSQL 14 Compatibility
1 parent 5f1239b commit 1546c22

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ Compatibility
363363

364364
This module has been tested on:
365365

366-
* **Postgres 9.4, 9.5, 9.6, 10, 11, 12, 13**
366+
* **Postgres 9.4, 9.5, 9.6, 10, 11, 12, 13, 14**
367367

368368
If you end up needing to change something to get this running on another system, send us the diff and we'll try to work it in!
369369

src/hll.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,18 @@ FunctionOid(const char *schemaName, const char *functionName, int argumentCount,
328328
List *argumentList = NIL;
329329
const bool findVariadics = false;
330330
const bool findDefaults = false;
331+
#if PG_VERSION_NUM >= 140000
332+
const bool includeOutArguments = false;
331333

332334
functionList = FuncnameGetCandidates(qualifiedFunctionNameList, argumentCount,
333335
argumentList, findVariadics,
334-
findDefaults, true);
336+
findDefaults, includeOutArguments,
337+
true);
338+
#else
339+
functionList = FuncnameGetCandidates(qualifiedFunctionNameList, argumentCount,
340+
argumentList, findVariadics,
341+
findDefaults, true);
342+
#endif
335343

336344
if (functionList == NULL)
337345
{

0 commit comments

Comments
 (0)