From: Teodor Sigaev Date: Wed, 31 May 2006 14:53:41 +0000 (+0000) Subject: fix comparison with SPI_processed X-Git-Tag: REL8_2_BETA1~866 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c269f0f1e2c760dde7a2c95ab09f913fa2aef1c4;p=postgresql fix comparison with SPI_processed --- diff --git a/contrib/tsearch2/query_rewrite.c b/contrib/tsearch2/query_rewrite.c index 1c3121aa85..63d8140a6c 100644 --- a/contrib/tsearch2/query_rewrite.c +++ b/contrib/tsearch2/query_rewrite.c @@ -218,7 +218,7 @@ get_tsq_Oid(void) /* internal error */ elog(ERROR, "SPI_exec to get tsquery oid returns %d", ret); - if (SPI_processed < 0) + if (SPI_processed < 1) /* internal error */ elog(ERROR, "there is no tsvector type"); tsqOid = DatumGetObjectId(SPI_getbinval(SPI_tuptable->vals[0], SPI_tuptable->tupdesc, 1, &isnull));