diff options
Diffstat (limited to '')
-rw-r--r-- | databases/postgresql-plproxy/files/patch-src-function.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/databases/postgresql-plproxy/files/patch-src-function.c b/databases/postgresql-plproxy/files/patch-src-function.c new file mode 100644 index 000000000000..0ee9cd9622a3 --- /dev/null +++ b/databases/postgresql-plproxy/files/patch-src-function.c @@ -0,0 +1,16 @@ +--- src/function.c.orig 2017-10-08 08:53:35 UTC ++++ src/function.c +@@ -214,8 +214,13 @@ fn_returns_dynamic_record(HeapTuple proc + Form_pg_proc proc_struct; + proc_struct = (Form_pg_proc) GETSTRUCT(proc_tuple); + if (proc_struct->prorettype == RECORDOID ++#if PG_VERSION_NUM >= 110000 ++ && (heap_attisnull(proc_tuple, Anum_pg_proc_proargmodes, NULL) ++ || heap_attisnull(proc_tuple, Anum_pg_proc_proargnames, NULL))) ++#else + && (heap_attisnull(proc_tuple, Anum_pg_proc_proargmodes) + || heap_attisnull(proc_tuple, Anum_pg_proc_proargnames))) ++#endif + return true; + return false; + } |