mirror of
https://github.com/HypoPG/hypopg
synced 2026-05-24 09:38:21 +00:00
Also fix hypo_can_return for pg9.6+
This commit is contained in:
parent
191340ebb4
commit
1a65213a94
1 changed files with 6 additions and 1 deletions
7
hypopg.c
7
hypopg.c
|
|
@ -2086,8 +2086,13 @@ static bool
|
|||
hypo_can_return(hypoEntry *entry, Oid atttype, int i, char *amname)
|
||||
{
|
||||
/* no amcanreturn entry, am does not handle IOS */
|
||||
if (!OidIsValid(entry->amcanreturn))
|
||||
#if PG_VERSION_NUM >= 90600
|
||||
if (entry->amcanreturn == NULL)
|
||||
return false;
|
||||
#else
|
||||
if (!RegProcedureIsValid(entry->amcanreturn))
|
||||
return false;
|
||||
#endif
|
||||
|
||||
switch (entry->relam)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue