Skip to content
Permalink
Browse files

Include NULL in expression builder available functions list

Cherry-picked from 7b18f67
  • Loading branch information
nyalldawson committed Jul 9, 2015
1 parent d371fd6 commit 30dd60e4bbf1eb8efd8c9d01cb25f84960da8f90
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>
@@ -399,6 +399,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 30dd60e

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