Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1503d0f

Browse files
author
Artur Zakirov
committed
Allow module to use with PostgreSQL 9.5
1 parent11cd7fa commit1503d0f

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
staticbool
2043+
#ifPG_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
inti;
20462050
hlCheck*checkval= (hlCheck*)opaque;
20472051

20482052
for (i=0;i<checkval->len;i++)
20492053
{
20502054
if (checkval->words[i].item==val)
2055+
#ifPG_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+
#ifPG_VERSION_NUM >=90600
20712080
if (data&&data->npos>0)
20722081
return true;
2082+
#endif
20732083

20742084
return false;
20752085
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp