Skip to content

Commit 501d1c9

Browse files
author
wonder
committed
"in"/"not in" is a predicate (#3503)
git-svn-id: http://svn.osgeo.org/qgis/trunk@15203 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a260259 commit 501d1c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/qgssearchstringparser.yy

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ search_cond:
127127
// more predicates to come
128128
predicate:
129129
comp_predicate
130+
| scalar_exp IN '(' scalar_exp_list ')' { $$ = new QgsSearchTreeNode(QgsSearchTreeNode::opIN, $1, $4); joinTmpNodes($$,$1,$4); }
131+
| scalar_exp NOT IN '(' scalar_exp_list ')' { $$ = new QgsSearchTreeNode(QgsSearchTreeNode::opNOTIN, $1, $5); joinTmpNodes($$,$1,$5); }
130132
;
131133

132134
comp_predicate:
@@ -176,8 +178,6 @@ scalar_exp:
176178
| STRING { $$ = new QgsSearchTreeNode(QString::fromUtf8(yytext), 0); addToTmpNodes($$); }
177179
| NULLVALUE { $$ = new QgsSearchTreeNode(QString::null, 0); addToTmpNodes($$); }
178180
| COLUMN_REF { $$ = new QgsSearchTreeNode(QString::fromUtf8(yytext), 1); addToTmpNodes($$); }
179-
| scalar_exp IN '(' scalar_exp_list ')' { $$ = new QgsSearchTreeNode(QgsSearchTreeNode::opIN, $1, $4); joinTmpNodes($$,$1,$4); }
180-
| scalar_exp NOT IN '(' scalar_exp_list ')' { $$ = new QgsSearchTreeNode(QgsSearchTreeNode::opNOTIN, $1, $5); joinTmpNodes($$,$1,$5); }
181181
;
182182

183183
%%

0 commit comments

Comments
 (0)