Skip to content

Commit 7b18f67

Browse files
committed
Include NULL in expression builder available functions list
1 parent eb6279a commit 7b18f67

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
@@ -430,6 +430,8 @@ void QgsExpressionBuilderWidget::updateFunctionTree()
430430
registerItem( "Conditionals", "CASE", casestring );
431431
registerItem( "Conditionals", "CASE ELSE", caseelsestring );
432432

433+
registerItem( "Fields and Values", "NULL", "NULL" );
434+
433435
// Load the functions from the QgsExpression class
434436
int count = QgsExpression::functionCount();
435437
for ( int i = 0; i < count; i++ )

0 commit comments

Comments
 (0)