add ibatis parameters support

This commit is contained in:
温少
2012-03-15 13:45:20 +08:00
parent 5f80737ead
commit 7c62f95ce7
4 changed files with 87 additions and 2 deletions
@@ -162,7 +162,7 @@ public class OracleLexer extends Lexer {
return;
}
if (ch != ':') {
if (ch != ':' && ch != '#') {
throw new SQLParseException("illegal variable");
}
@@ -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");
}