bug fixed for issue #2106

This commit is contained in:
wenshao
2017-11-13 09:53:25 +08:00
parent 7393c725c2
commit 9f4bd3fc68
2 changed files with 2 additions and 0 deletions
@@ -1900,6 +1900,7 @@ public class MySqlStatementParser extends SQLStatementParser {
acceptIdentifier("TRANSACTION");
SQLStartTransactionStatement stmt = new SQLStartTransactionStatement();
stmt.setDbType(dbType);
if (lexer.token() == Token.WITH) {
lexer.nextToken();
@@ -494,6 +494,7 @@ public class SQLServerStatementParser extends SQLStatementParser {
lexer.nextToken();
SQLStartTransactionStatement startTrans = new SQLStartTransactionStatement();
startTrans.setDbType(dbType);
if (lexer.token() == Token.IDENTIFIER) {
SQLName name = this.exprParser.name();