Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #11308 - Add missing IN operator
  • Loading branch information
NathanW2 committed Oct 4, 2014
1 parent 1e43cd3 commit f8a838d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions resources/function_help/IN
@@ -0,0 +1,13 @@
<h3>IN expression</h3>
Returns 1 if value is found within a list of values

<h4>Syntax</h4>
<pre>'a' IN ('a', 'b')</pre>

<h4>Arguments</h4>
None

<h4>Example</h4>
<pre> 'A' IN ('A','B") &rarr; returns 1 </pre>
<pre> 'A' IN ('C','B") &rarr; returns 0 </pre>

1 change: 1 addition & 0 deletions src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -72,6 +72,7 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
.arg( tr( "Joins two values together into a string" ) )
.arg( tr( "Usage" ) )
.arg( tr( "'Dia' || Diameter" ) ) );
registerItem( "Operators", "IN", " IN " );
registerItem( "Operators", "LIKE", " LIKE " );
registerItem( "Operators", "ILIKE", " ILIKE " );
registerItem( "Operators", "IS", " IS " );
Expand Down

0 comments on commit f8a838d

Please sign in to comment.