#1483 - Invalid SQL with allQuotedIdentifiers true - where t0.[t0.[COND]] in (?, ?, ?, ?, ?, ?, ?, ?, ?, ? )

This commit is contained in:
Rob Bygrave
2018-09-20 23:12:26 +12:00
parent be24e11b91
commit 42f9e74d91
4 changed files with 56 additions and 3 deletions
@@ -22,6 +22,10 @@ public abstract class DeployParser {
*/
protected static final char UNDERSCORE = '_';
protected static final char OPEN_SQUARE_BRACKET = '[';
protected static final char CLOSE_SQUARE_BRACKET = ']';
protected static final char DOUBLE_QUOTE = '\"';
/**
* Used to determine when a column name terminates.
*/
@@ -183,10 +187,10 @@ public abstract class DeployParser {
wordBuffer.append(ch);
return false;
}
return Character.isLetterOrDigit(ch) || ch == UNDERSCORE || ch == PERIOD;
return Character.isLetterOrDigit(ch) || ch == UNDERSCORE || ch == PERIOD || ch == DOUBLE_QUOTE || ch == CLOSE_SQUARE_BRACKET;
}
private boolean isWordStart(char ch) {
return Character.isLetter(ch) || ch == UNDERSCORE;
return Character.isLetter(ch) || ch == UNDERSCORE || ch == DOUBLE_QUOTE || ch == OPEN_SQUARE_BRACKET;
}
}