File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -2041,8 +2041,14 @@ typedef struct
2041
2041
int len ;
2042
2042
} hlCheck ;
2043
2043
2044
+ #if PG_VERSION_NUM >= 90600 || defined (PGPRO_VERSION )
2045
+ #define USE_PHRASE_SEARCH
2046
+ #else
2047
+ #undef USE_PHRASE_SEARCH
2048
+ #endif
2049
+
2044
2050
static bool
2045
- #if PG_VERSION_NUM >= 90600
2051
+ #ifdef USE_PHRASE_SEARCH
2046
2052
checkcondition_HL (void * opaque , QueryOperand * val , ExecPhraseData * data )
2047
2053
#else
2048
2054
checkcondition_HL (void * opaque , QueryOperand * val )
@@ -2054,7 +2060,7 @@ checkcondition_HL(void *opaque, QueryOperand *val)
2054
2060
for (i = 0 ; i < checkval -> len ; i ++ )
2055
2061
{
2056
2062
if (checkval -> words [i ].item == val )
2057
- #if PG_VERSION_NUM >= 90600
2063
+ #ifdef USE_PHRASE_SEARCH
2058
2064
{
2059
2065
/* don't need to find all positions */
2060
2066
if (!data )
@@ -2078,7 +2084,7 @@ checkcondition_HL(void *opaque, QueryOperand *val)
2078
2084
#endif
2079
2085
}
2080
2086
2081
- #if PG_VERSION_NUM >= 90600
2087
+ #ifdef USE_PHRASE_SEARCH
2082
2088
if (data && data -> npos > 0 )
2083
2089
return true;
2084
2090
#endif
You can’t perform that action at this time.
0 commit comments