Skip to content

bugfix:修复-q参数后面跟多个SQL无法正确解析的问题。(issue:#7)#8

Open
dolphinsboy wants to merge 1 commit intoMeituan-Dianping:masterfrom
dolphinsboy:master
Open

bugfix:修复-q参数后面跟多个SQL无法正确解析的问题。(issue:#7)#8
dolphinsboy wants to merge 1 commit intoMeituan-Dianping:masterfrom
dolphinsboy:master

Conversation

@dolphinsboy
Copy link

@dolphinsboy dolphinsboy commented Mar 13, 2017

修复的版本验证:

2017-03-13 16:19:23 1180 [Note] Query 0 SELECT p.*,s.cn_name FROM cc_paysystem_withdrawal as p LEFT JOIN cc_shop as s ON p.type_id = s.id WHERE ( p.type = 'SHOP' ) ORDER BY p.id LIMIT 0,50

2017-03-13 16:19:23 1180 [Note] 第1步: 对SQL解析优化之后得到的SQL:select `p`.`*` AS `*`,`s`.`cn_name` AS `cn_name` from (`wk_shop`.`cc_paysystem_withdrawal` `p` left join `wk_shop`.`cc_shop` `s` on((`p`.`type_id` = `s`.`id`))) where (`p`.`type` = 'SHOP') order by `p`.`id` limit 0,50 

...
2017-03-13 16:19:23 1180 [Note] 第15步: SQLAdvisor结束! 

2017-03-13 16:19:23 1180 [Note] Query 1 select * from cc_paysystem_withdrawal where type='SHOP' order by id limit 0,50

2017-03-13 16:19:23 1180 [Note] 第1步: 对SQL解析优化之后得到的SQL:select `*` AS `*` from `wk_shop`.`cc_paysystem_withdrawal` where (`type` = 'SHOP') order by `id` limit 0,50 

.....
2017-03-13 16:19:23 1180 [Note] 第8步: SQLAdvisor结束! 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants