DBZ-3545 Check for "IS NULL" in SelectLobParser
This commit is contained in:
parent
30fd47179e
commit
9bdbec995f
@ -222,13 +222,13 @@ else if (initialSpace && c == '=' && lookAhead == ' ') {
|
||||
index += 3;
|
||||
break;
|
||||
}
|
||||
else if (initialSpace && c == 'i' && lookAhead == 's') {
|
||||
else if (initialSpace && c == 'I' && lookAhead == 'S') {
|
||||
char lookAhead2 = (i + 2 < sql.length()) ? sql.charAt(i + 2) : 0;
|
||||
if (lookAhead2 == ' ') {
|
||||
index += 4;
|
||||
break;
|
||||
}
|
||||
throw new ParsingException(null, "Expected 'is' at index " + i + ": " + sql);
|
||||
throw new ParsingException(null, "Expected 'IS' at index " + i + ": " + sql);
|
||||
}
|
||||
else {
|
||||
throw new ParsingException(null, "Failed to parse operator at index " + i + ": " + sql);
|
||||
|
@ -101,7 +101,7 @@ public void shouldParseComplexClobBasedLobSelect() throws Exception {
|
||||
"BEGIN\n" +
|
||||
" select \"CLOB_COL\" into loc_c from \"DEBEZIUM\".\"BIG_TABLE\" where \"ID\" = '651900002' and \"NAME\" = " +
|
||||
"'person number 651900002' and \"AGE\" = '125' and \"ADRESS\" = 'street:651900002 av: 651900002 house: 651900002'" +
|
||||
" and \"TD\" = TO_DATE('15-MAY-21', 'DD-MON-RR') and \"FLAG\" is null for update;";
|
||||
" and \"TD\" = TO_DATE('15-MAY-21', 'DD-MON-RR') and \"FLAG\" IS NULL for update;";
|
||||
|
||||
LogMinerDmlEntry entry = parser.parse(redoSql);
|
||||
|
||||
@ -152,7 +152,7 @@ public void shouldParseComplexBlobBasedLobSelect() throws Exception {
|
||||
"BEGIN\n" +
|
||||
" select \"BLOB_COL\" into loc_b from \"DEBEZIUM\".\"BIG_TABLE\" where \"ID\" = '651900002' and \"NAME\" = " +
|
||||
"'person number 651900002' and \"AGE\" = '125' and \"ADRESS\" = 'street:651900002 av: 651900002 house: 651900002'" +
|
||||
" and \"TD\" = TO_DATE('15-MAY-21', 'DD-MON-RR') and \"FLAG\" is null for update;";
|
||||
" and \"TD\" = TO_DATE('15-MAY-21', 'DD-MON-RR') and \"FLAG\" IS NULL for update;";
|
||||
|
||||
LogMinerDmlEntry entry = parser.parse(redoSql);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user