#2000 作为firewall使用在mysql上的时候lock tables .. write过不了校验

This commit is contained in:
sunzhengfang
2017-09-28 11:05:31 +08:00
parent aa957fab13
commit a524882bd8
2 changed files with 42 additions and 10 deletions
@@ -597,10 +597,12 @@ public class MySqlStatementParser extends SQLStatementParser {
stmt.setLockType(LockType.READ);
}
} else if (lexer.identifierEquals(WRITE)) {
lexer.nextToken();
stmt.setLockType(LockType.WRITE);
} else if (lexer.identifierEquals(FnvHash.Constants.LOW_PRIORITY)) {
lexer.nextToken();
acceptIdentifier(WRITE);
lexer.nextToken();
stmt.setLockType(LockType.LOW_PRIORITY_WRITE);
} else {
throw new ParserException("syntax error, expect READ or WRITE, actual " + lexer.token() + ", " + lexer.info());