Skip to content

Commit

Permalink
Merge pull request #792 from yakolee/master
Browse files Browse the repository at this point in the history
fix issue #769
  • Loading branch information
yakolee committed Feb 8, 2015
2 parents f2569d1 + a6d0d6e commit 937b561
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,11 @@ public MySqlDeleteStatement parseDeleteStatement() {
SQLTableSource tableSource = createSQLSelectParser().parseTableSource();
deleteStatement.setFrom(tableSource);
}
} else if (lexer.token() == Token.FROM) {
lexer.nextToken();
deleteStatement.setTableSource(createSQLSelectParser().parseTableSource());
} else {
if (lexer.token() == Token.FROM) {
lexer.nextToken();
deleteStatement.setTableSource(createSQLSelectParser().parseTableSource());
}
throw new ParserException("syntax error");
}

if (identifierEquals("USING")) {
Expand Down

0 comments on commit 937b561

Please sign in to comment.