improved postgresql parser. for issue #1841

This commit is contained in:
wenshao
2017-07-23 17:12:38 +08:00
parent 904eed243c
commit 814cb1f024
5 changed files with 136 additions and 41 deletions
@@ -690,6 +690,10 @@ public class Lexer {
} else if (ch == '@') {
scanChar();
token = Token.LT_MONKEYS_AT;
} else if (ch == '-' && charAt(pos + 1) == '>') {
scanChar();
scanChar();
token = Token.LT_SUB_GT;
} else {
token = Token.LT;
}