DBZ-3545 Check for "IS NULL" in SelectLobParser

This commit is contained in:
Patrick Chu 2021-05-20 12:22:47 -07:00 committed by Gunnar Morling
parent 30fd47179e
commit 9bdbec995f
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);