fix comparison with SPI_processed

This commit is contained in:
Teodor Sigaev 2006-05-31 14:53:41 +00:00
parent 22505f4703
commit c269f0f1e2
1 changed files with 1 additions and 1 deletions

View File

@ -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));