Skip to content

Commit

Permalink
Merge pull request #8835 from rldhont/bugfix-oracle-compile-expressio…
Browse files Browse the repository at this point in the history
…n-like-218

[Bugfix][Oracle] Add ESCAPE when compiling LIKE
  • Loading branch information
m-kuhn authored Jan 15, 2019
2 parents b411f36 + 87442a5 commit 5badeda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/oracle/qgsoracleexpressioncompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ QgsSqlExpressionCompiler::Result QgsOracleExpressionCompiler::compileNode( const
return Complete;

case QgsExpression::boILike:
result = QString( "lower(%1) LIKE lower(%2)" ).arg( op1, op2 );
result = QString( "lower(%1) LIKE lower(%2) ESCAPE '\\'" ).arg( op1, op2 );
return Complete;

case QgsExpression::boNotILike:
result = QString( "NOT lower(%1) LIKE lower(%2)" ).arg( op1, op2 );
result = QString( "NOT lower(%1) LIKE lower(%2) ESCAPE '\\'" ).arg( op1, op2 );
return Complete;

case QgsExpression::boIntDiv:
Expand Down

0 comments on commit 5badeda

Please sign in to comment.