Skip to content

Commit 30dd60e

Browse files
committedJul 9, 2015
Include NULL in expression builder available functions list
Cherry-picked from 7b18f67
1 parent d371fd6 commit 30dd60e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
 

‎resources/function_help/NULL

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<h3>NULL value</h3>
2+
Equates to a null value.
3+
4+
<h4>Syntax</h4>
5+
<pre>NULL</pre>
6+
7+
<h4>Arguments</h4>
8+
None
9+
10+
<h4>Example</h4>
11+
<pre> NULL &rarr; returns a null value </pre>
12+
13+
<h4>Note:</h4>
14+
<p>To test for NULL use an <pre>IS NULL</pre> or <pre>IS NOT NULL</pre> expression.</p>

‎src/gui/qgsexpressionbuilderwidget.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ void QgsExpressionBuilderWidget::updateFunctionTree()
399399
registerItem( "Conditionals", "CASE", casestring );
400400
registerItem( "Conditionals", "CASE ELSE", caseelsestring );
401401

402+
registerItem( "Fields and Values", "NULL", "NULL" );
403+
402404
// Load the functions from the QgsExpression class
403405
int count = QgsExpression::functionCount();
404406
for ( int i = 0; i < count; i++ )

0 commit comments

Comments
 (0)
Please sign in to comment.