Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改lib/query.py中grasp函数的select_regx #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arrti
Copy link

@arrti arrti commented Apr 30, 2015

原来的select_regx无法正确匹配如"select abc, count(1) from table ……"、"select count(1) as a from table ……"的sql语句,会转换为"select * from table ……",修改select_regx的正则表达式后正常。

… when the sql is like"select tb1.a, count(tb2.b) from tb1 left join tb2 on tb1.c = tb2.d where tb1.a = e group by tb1.a", it can't match more than one fields when having 'count()'.
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.

1 participant