mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
增加mysql对procedure语法的识别
This commit is contained in:
@@ -134,6 +134,11 @@ public class Keywords {
|
||||
map.put("WITH", Token.WITH);
|
||||
map.put("GRANT", Token.GRANT);
|
||||
map.put("REVOKE", Token.REVOKE);
|
||||
|
||||
// MySql procedure by:zz
|
||||
map.put("WHILE", Token.WHILE);
|
||||
map.put("DO", Token.DO);
|
||||
map.put("DECLARE", Token.DECLARE);
|
||||
|
||||
DEFAULT_KEYWORDS = new Keywords(map);
|
||||
}
|
||||
|
||||
@@ -128,6 +128,10 @@ public enum Token {
|
||||
SHOW("SHOW"),
|
||||
REPLACE("REPLACE"),
|
||||
|
||||
// MySql procedure by:zz
|
||||
WHILE("WHILE"),
|
||||
DO("DO"),
|
||||
|
||||
//postgresql
|
||||
WINDOW("WINDOW"),
|
||||
OFFSET("OFFSET"),
|
||||
|
||||
Reference in New Issue
Block a user