File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 77 *
88 *
99 * IDENTIFICATION
10- * $PostgreSQL: pgsql/src/backend/utils/adt/tsquery_rewrite.c,v 1.15 2009/07/16 06:33:44 petere Exp $
10+ * $PostgreSQL: pgsql/src/backend/utils/adt/tsquery_rewrite.c,v 1.16 2009/07/28 09:31:55 teodor Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
@@ -217,12 +217,12 @@ dropvoidsubtree(QTNode *root)
217217
218218 root -> nchild = j ;
219219
220- if (root -> valnode -> qoperator . oper == OP_NOT && root -> nchild == 0 )
220+ if (root -> nchild == 0 )
221221 {
222222 QTNFree (root );
223223 root = NULL ;
224224 }
225- else if (root -> nchild == 1 )
225+ else if (root -> nchild == 1 && root -> valnode -> qoperator . oper != OP_NOT )
226226 {
227227 QTNode * nroot = root -> child [0 ];
228228
You can’t perform that action at this time.
0 commit comments