Skip to content
Permalink
Browse files

Merge pull request #8835 from rldhont/bugfix-oracle-compile-expressio…

…n-like-218

[Bugfix][Oracle] Add ESCAPE when compiling LIKE
  • Loading branch information
m-kuhn committed Jan 15, 2019
2 parents b411f36 + 87442a5 commit 5badeda909da1c036bafa05495a28a2b079b7864
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/oracle/qgsoracleexpressioncompiler.cpp
@@ -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:

0 comments on commit 5badeda

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