Skip to content
Permalink
Browse files

Include NULL in expression builder available functions list

Cherry-picked from 7b18f67
  • Loading branch information
nyalldawson committed Jul 8, 2015
1 parent c3b0bc3 commit 29a7bf7b399577d95d1cc02b8ceae468df008eb5
Showing with 16 additions and 0 deletions.
  1. +14 −0 resources/function_help/NULL
  2. +2 −0 src/gui/qgsexpressionbuilderwidget.cpp
@@ -0,0 +1,14 @@
<h3>NULL value</h3>
Equates to a null value.

<h4>Syntax</h4>
<pre>NULL</pre>

<h4>Arguments</h4>
None

<h4>Example</h4>
<pre> NULL &rarr; returns a null value </pre>

<h4>Note:</h4>
<p>To test for NULL use an <pre>IS NULL</pre> or <pre>IS NOT NULL</pre> expression.</p>
@@ -406,6 +406,8 @@ void QgsExpressionBuilderWidget::updateFunctionTree()
registerItem( "Conditionals", "CASE", casestring );
registerItem( "Conditionals", "CASE ELSE", caseelsestring );

registerItem( "Fields and Values", "NULL", "NULL" );

// Load the functions from the QgsExpression class
int count = QgsExpression::functionCount();
for ( int i = 0; i < count; i++ )

0 comments on commit 29a7bf7

Please sign in to comment.
You can’t perform that action at this time.