mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
fix comparison with SPI_processed
This commit is contained in:
@ -218,7 +218,7 @@ get_tsq_Oid(void)
|
|||||||
/* internal error */
|
/* internal error */
|
||||||
elog(ERROR, "SPI_exec to get tsquery oid returns %d", ret);
|
elog(ERROR, "SPI_exec to get tsquery oid returns %d", ret);
|
||||||
|
|
||||||
if (SPI_processed < 0)
|
if (SPI_processed < 1)
|
||||||
/* internal error */
|
/* internal error */
|
||||||
elog(ERROR, "there is no tsvector type");
|
elog(ERROR, "there is no tsvector type");
|
||||||
tsqOid = DatumGetObjectId(SPI_getbinval(SPI_tuptable->vals[0], SPI_tuptable->tupdesc, 1, &isnull));
|
tsqOid = DatumGetObjectId(SPI_getbinval(SPI_tuptable->vals[0], SPI_tuptable->tupdesc, 1, &isnull));
|
||||||
|
Reference in New Issue
Block a user