mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Merge pull request #2014 from sunsun314/master
fix bug:LOCK TABLES table_name write 在mysql防火墙校验的时候会过不了校验
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user