diff options
Diffstat (limited to 'contrib/tsearch/gistidx.c')
| -rw-r--r-- | contrib/tsearch/gistidx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/tsearch/gistidx.c b/contrib/tsearch/gistidx.c index 5e52703684..61ab1bd8f0 100644 --- a/contrib/tsearch/gistidx.c +++ b/contrib/tsearch/gistidx.c @@ -231,6 +231,9 @@ gtxtidx_consistent(PG_FUNCTION_ARGS) { ((GISTENTRY *)PG_GETARG_POINTER(0))->key ); + if ( !query->size ) + PG_RETURN_BOOL(false); + if ( ISSIGNKEY(key) ) { if ( ISALLTRUE(key) ) PG_RETURN_BOOL(true); |
