File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1973,7 +1973,11 @@ typedef struct
1973
1973
#undef USE_PHRASE_SEARCH
1974
1974
#endif
1975
1975
1976
+ #if PG_VERSION_NUM >= 130000
1977
+ static TSTernaryValue
1978
+ #else
1976
1979
static bool
1980
+ #endif
1977
1981
#ifdef USE_PHRASE_SEARCH
1978
1982
checkcondition_HL (void * opaque , QueryOperand * val , ExecPhraseData * data )
1979
1983
#else
@@ -1990,7 +1994,11 @@ checkcondition_HL(void *opaque, QueryOperand *val)
1990
1994
{
1991
1995
/* don't need to find all positions */
1992
1996
if (!data )
1997
+ #if PG_VERSION_NUM >= 130000
1998
+ return TS_YES ;
1999
+ #else
1993
2000
return true;
2001
+ #endif
1994
2002
1995
2003
if (!data -> pos )
1996
2004
{
@@ -2005,17 +2013,29 @@ checkcondition_HL(void *opaque, QueryOperand *val)
2005
2013
data -> pos [data -> npos ++ ] = checkval -> words [i ].pos ;
2006
2014
}
2007
2015
}
2016
+ #else
2017
+ #if PG_VERSION_NUM >= 130000
2018
+ return TS_YES ;
2008
2019
#else
2009
2020
return true;
2021
+ #endif
2010
2022
#endif
2011
2023
}
2012
2024
2013
2025
#ifdef USE_PHRASE_SEARCH
2014
2026
if (data && data -> npos > 0 )
2027
+ #if PG_VERSION_NUM >= 130000
2028
+ return TS_YES ;
2029
+ #else
2015
2030
return true;
2016
2031
#endif
2032
+ #endif
2017
2033
2034
+ #if PG_VERSION_NUM >= 130000
2035
+ return TS_NO ;
2036
+ #else
2018
2037
return false;
2038
+ #endif
2019
2039
}
2020
2040
2021
2041
You can’t perform that action at this time.
0 commit comments