mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add ibatis parameters support
This commit is contained in:
@@ -277,6 +277,9 @@ public class Lexer {
|
||||
}
|
||||
}
|
||||
return;
|
||||
case '#':
|
||||
scanVariable();
|
||||
return;
|
||||
case '.':
|
||||
scanChar();
|
||||
if (isDigit(ch)) {
|
||||
@@ -551,7 +554,7 @@ public class Lexer {
|
||||
public void scanVariable() {
|
||||
final char first = ch;
|
||||
|
||||
if (ch != '@' && ch != ':') {
|
||||
if (ch != '@' && ch != ':' && ch != '#') {
|
||||
throw new SQLParseException("illegal variable");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user