Skip to content

Commit

Permalink
Sql Compiler: Add escape after IN operator
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Jan 2, 2017
1 parent 735b1c3 commit 904d26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgssqlexpressioncompiler.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 904d26a

Please sign in to comment.