mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for mysql parser. support syntax 'set xxx = ON
This commit is contained in:
@@ -695,7 +695,12 @@ public class MySqlExprParser extends SQLExprParser {
|
||||
}
|
||||
}
|
||||
|
||||
item.setValue(this.expr());
|
||||
if (lexer.token() == Token.ON) {
|
||||
lexer.nextToken();
|
||||
item.setValue(new SQLIdentifierExpr("ON"));
|
||||
} else {
|
||||
item.setValue(this.expr());
|
||||
}
|
||||
|
||||
item.setTarget(var);
|
||||
return item;
|
||||
|
||||
Reference in New Issue
Block a user