OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22505f4
)
fix comparison with SPI_processed
author
Teodor Sigaev
<teodor@sigaev.ru>
Wed, 31 May 2006 14:53:41 +0000
(14:53 +0000)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Wed, 31 May 2006 14:53:41 +0000
(14:53 +0000)
contrib/tsearch2/query_rewrite.c
patch
|
blob
|
history
diff --git
a/contrib/tsearch2/query_rewrite.c
b/contrib/tsearch2/query_rewrite.c
index
1c3121a
..
63d8140
100644
(file)
--- 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));