Skip to content
Permalink
Browse files
[virtual layer] Fix xFilter for null value comparisons
  • Loading branch information
Hugo Mercier committed Dec 5, 2016
1 parent 586166c commit d6e0120a1ce02bb8e2db57cd784d1f1d5cc2f0c6
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/providers/virtual/qgsvirtuallayersqlitemodule.cpp
@@ -616,13 +616,13 @@ int vtableFilter( sqlite3_vtab_cursor * cursor, int idxNum, const char *idxStr,
expr += "'" + str.replace( "'", "''" ) + "'";
break;
}
case SQLITE_NULL:
case SQLITE_BLOB: // comparison to blob ignored
default:
expr = "";
}
if ( !expr.isEmpty() )
{
request.setFilterExpression( expr );
expr += " is null";
break;
}
request.setFilterExpression( expr );
}
VTableCursor *c = reinterpret_cast<VTableCursor*>( cursor );
c->filter( request );

0 comments on commit d6e0120

Please sign in to comment.