Skip to content

Commit 904d26a

Browse files
committedJan 2, 2017
Sql Compiler: Add escape after IN operator
1 parent 735b1c3 commit 904d26a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgssqlexpressioncompiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ QgsSqlExpressionCompiler::Result QgsSqlExpressionCompiler::compileNode( const Qg
314314
if ( rn != Complete && rn != Partial )
315315
return rn;
316316

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

0 commit comments

Comments
 (0)
Please sign in to comment.