Skip to content
Permalink
Browse files

Sql Compiler: Add escape after IN operator

  • Loading branch information
rldhont committed Jan 2, 2017
1 parent 735b1c3 commit 904d26abd2a8b83132a677a5799f4453a3bb2136
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgssqlexpressioncompiler.cpp
@@ -314,7 +314,7 @@ QgsSqlExpressionCompiler::Result QgsSqlExpressionCompiler::compileNode( const Qg
if ( rn != Complete && rn != Partial )
return rn;

result = QStringLiteral( "%1 %2IN(%3)" ).arg( nd, n->isNotIn() ? "NOT " : "", list.join( QStringLiteral( "," ) ) );
result = QStringLiteral( "%1 %2IN (%3)" ).arg( nd, n->isNotIn() ? "NOT " : "", list.join( QStringLiteral( "," ) ) );
return ( inResult == Partial || rn == Partial ) ? Partial : Complete;
}

0 comments on commit 904d26a

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