Patch from Sushant Sinha <sushant354@gmail.com>
http://archives.postgresql.org/pgsql-hackers/2008-07/msg00785.php
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tsearch/wparser_def.c,v 1.15 2008/06/17 16:09:06 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/tsearch/wparser_def.c,v 1.16 2008/10/17 17:27:46 teodor Exp $
*
*-------------------------------------------------------------------------
*/
QueryItem *item = GETQUERY(query);
int pos = *p;
- *q = 0;
+ *q = -1;
*p = 0x7fffffff;
for (j = 0; j < query->size; j++)
item++;
}
- if (*q == 0)
+ if (*q < 0)
return false;
item = GETQUERY(query);