mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
增加mysql存储过程LOOP,REPAET,LEAVE,ITEARATE语法支持,以及支持BEGIN-END和WHILE语句标签支持
This commit is contained in:
@@ -139,7 +139,12 @@ public class Keywords {
|
||||
map.put("WHILE", Token.WHILE);
|
||||
map.put("DO", Token.DO);
|
||||
map.put("DECLARE", Token.DECLARE);
|
||||
|
||||
map.put("LOOP", Token.LOOP);
|
||||
map.put("LEAVE", Token.LEAVE);
|
||||
map.put("ITERATE", Token.ITERATE);
|
||||
map.put("REPEAT", Token.REPEAT);
|
||||
map.put("UNTIL", Token.UNTIL);
|
||||
|
||||
DEFAULT_KEYWORDS = new Keywords(map);
|
||||
}
|
||||
|
||||
|
||||
@@ -131,6 +131,10 @@ public enum Token {
|
||||
// MySql procedure by:zz
|
||||
WHILE("WHILE"),
|
||||
DO("DO"),
|
||||
LEAVE("LEAVE"),
|
||||
ITERATE("ITERATE"),
|
||||
REPEAT("REPEAT"),
|
||||
UNTIL("UNTIL"),
|
||||
|
||||
//postgresql
|
||||
WINDOW("WINDOW"),
|
||||
|
||||
Reference in New Issue
Block a user