Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1503d0f

Browse files
author
Artur Zakirov
committed
Allow module to use with PostgreSQL 9.5
1 parent 11cd7fa commit 1503d0f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tsparser.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,14 +2040,19 @@ typedef struct
20402040
} hlCheck;
20412041

20422042
static bool
2043+
#if PG_VERSION_NUM >= 90600
20432044
checkcondition_HL(void *opaque, QueryOperand *val, ExecPhraseData *data)
2045+
#else
2046+
checkcondition_HL(void *opaque, QueryOperand *val)
2047+
#endif
20442048
{
20452049
int i;
20462050
hlCheck *checkval = (hlCheck *) opaque;
20472051

20482052
for (i = 0; i < checkval->len; i++)
20492053
{
20502054
if (checkval->words[i].item == val)
2055+
#if PG_VERSION_NUM >= 90600
20512056
{
20522057
/* don't need to find all positions */
20532058
if (!data)
@@ -2066,10 +2071,15 @@ checkcondition_HL(void *opaque, QueryOperand *val, ExecPhraseData *data)
20662071
data->pos[data->npos++] = checkval->words[i].pos;
20672072
}
20682073
}
2074+
#else
2075+
return true;
2076+
#endif
20692077
}
20702078

2079+
#if PG_VERSION_NUM >= 90600
20712080
if (data && data->npos > 0)
20722081
return true;
2082+
#endif
20732083

20742084
return false;
20752085
}

0 commit comments

Comments
 (0)