diff options
| author | Bruce Momjian <bruce@momjian.us> | 2002-08-23 02:56:36 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2002-08-23 02:56:36 +0000 |
| commit | 52ee800ed33b071c4b047092797fb6a37e80ce87 (patch) | |
| tree | 376dc09a2357db40654d64562178f9cb297d5bcf /contrib/tsearch/gistidx.c | |
| parent | 2e0e430659455a9313bdd250b93f5c4af27d78f0 (diff) | |
| download | postgresql-52ee800ed33b071c4b047092797fb6a37e80ce87.tar.gz | |
Patch resolve ERROR problem for non-goog query_txt.
Teodor Sigaev
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); |
