Skip to content

Commit

Permalink
fixed =* operator translation for Oracle database (MapServer#7012)
Browse files Browse the repository at this point in the history
An expression such as ''[FIELD]' =* 'value'' was
translated into a SQL expression such as
'REGEXP_LIKE( FIELD, '^value$'', which lacks the
closing parenthesis
  • Loading branch information
mikitex70 authored Jan 15, 2024
1 parent 6f649e7 commit a468ec9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/maporaclespatial.c
Original file line number Diff line number Diff line change
Expand Up @@ -4331,9 +4331,12 @@ int msOracleSpatialLayerTranslateFilter(layerObj *layer, expressionObj *filter,
native_string = msStringConcatenate(native_string, snippet);
if (ieq == MS_TRUE) {
native_string = msStringConcatenate(native_string, "$");
ieq = MS_FALSE;
}
native_string = msStringConcatenate(native_string, "'");
if (ieq == MS_TRUE) {
native_string = msStringConcatenate(native_string, ")");
ieq = MS_FALSE;
}
msFree(snippet);
break;
case MS_TOKEN_LITERAL_BOOLEAN:
Expand Down

0 comments on commit a468ec9

Please sign in to comment.