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

0 comments on commit e0e60da

Please sign in to comment.