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

Commit394e9d1

Browse files
author
Artur Zakirov
committed
Use phrase search for PgPro 9.5
1 parent2408962 commit394e9d1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

‎tsparser.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,8 +2041,14 @@ typedef struct
20412041
intlen;
20422042
}hlCheck;
20432043

2044+
#ifPG_VERSION_NUM >=90600|| defined (PGPRO_VERSION)
2045+
#defineUSE_PHRASE_SEARCH
2046+
#else
2047+
#undef USE_PHRASE_SEARCH
2048+
#endif
2049+
20442050
staticbool
2045-
#ifPG_VERSION_NUM >=90600
2051+
#ifdefUSE_PHRASE_SEARCH
20462052
checkcondition_HL(void*opaque,QueryOperand*val,ExecPhraseData*data)
20472053
#else
20482054
checkcondition_HL(void*opaque,QueryOperand*val)
@@ -2054,7 +2060,7 @@ checkcondition_HL(void *opaque, QueryOperand *val)
20542060
for (i=0;i<checkval->len;i++)
20552061
{
20562062
if (checkval->words[i].item==val)
2057-
#ifPG_VERSION_NUM >=90600
2063+
#ifdefUSE_PHRASE_SEARCH
20582064
{
20592065
/* don't need to find all positions */
20602066
if (!data)
@@ -2078,7 +2084,7 @@ checkcondition_HL(void *opaque, QueryOperand *val)
20782084
#endif
20792085
}
20802086

2081-
#ifPG_VERSION_NUM >=90600
2087+
#ifdefUSE_PHRASE_SEARCH
20822088
if (data&&data->npos>0)
20832089
return true;
20842090
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp