druid SQLUtils.parseStatements解析报错

fd3cxomn  于 4个月前  发布在  Druid
关注(0)|答案(2)|浏览(69)

执行SQLUtils.parseStatements(SLQ,"mysql")
当SQL=grant create,insert on 'db'.'name' to 'dbedit'@'%'; 报错:com.alibaba.druid.sql.parser.ParserException:TODO:COMMMA.
当SQL=grant create,insert on 'db'.'name' to 'dbedit'@'%'; 执行正常。
麻烦修复下~

jckbn6z7

jckbn6z71#

有什么不同?语句贴错了?
执行SQLUtils.parseStatements(SLQ,"mysql")
当SQL=grant create,insert on 'db'.'name' to 'dbedit'@'%'; 报错:com.alibaba.druid.sql.parser.ParserException:TODO:COMMMA.
当SQL=grant create,insert on 'db'.'name' to 'dbedit'@'%'; 执行正常。
麻烦修复下~

nvbavucw

nvbavucw2#

不好意思,语句写错了 执行SQLUtils.parseStatements(SLQ,"mysql") 当SQL=grant create,insert on 'db'.'name' to 'dbedit'@'%'; 报错:com.alibaba.druid.sql.parser.ParserException:TODO:COMMMA. 当SQL=grant insert,create on 'db'.'name' to 'dbedit'@'%'; 执行正常。 麻烦修复下~ 当SQL=grant create,alter on 'db'.'name' to 'dbedit'@'%'; 或 grant create,alter,drop on 'db'.'name' to 'dbedit'@'%'; 也报错:com.alibaba.druid.sql.parser.ParserException:TODO:COMMMA. 各种语句类型的排列组合麻烦都验证下~…

------------------ 原始邮件 ------------------ 发件人: "alibaba/druid" <notifications@github.com>; 发送时间: 2020年9月25日(星期五) 上午10:51 收件人: "alibaba/druid"<druid@noreply.github.com>; 抄送: "Cm"<756759143@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [alibaba/druid] SQLUtils.parseStatements解析报错 (#3965) 有什么不同?语句贴错了? 执行SQLUtils.parseStatements(SLQ,"mysql") 当SQL=grant create,insert on 'db'.'name' to 'dbedit'@'%'; 报错:com.alibaba.druid.sql.parser.ParserException:TODO:COMMMA. 当SQL=grant create,insert on 'db'.'name' to 'dbedit'@'%'; 执行正常。 麻烦修复下~ — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

相关问题