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

in-list conatins too many commas #29

Closed
GoogleCodeExporter opened this issue Mar 23, 2016 · 2 comments
Closed

in-list conatins too many commas #29

GoogleCodeExporter opened this issue Mar 23, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

SELECT q.qid, question, gid FROM questions as q WHERE (select count(*) from 
answers as a where a.qid=q.qid and scale_id=0)=0 and sid=11929 AND type IN 
('F', 'H', 'W', 'Z', '1') and q.parent_qid=0

goes wrong, the in-list contains commas, so we will get from the creator:

SELECT q.qid,question,gid FROM questions q WHERE (SELECT count(*) FROM answers 
a WHERE a.qid = q.qid and scale_id = 0) = 0 and sid = 11929 AND type IN ('F',, 
,'H',, ,'W',, ,'Z',, ,'1') and q.parent_qid = 0

Version:
https://www.phosco.info/publicsvn/php-sql-parser/tags/20120217

Original issue reported on code.google.com by pho...@gmx.de on 22 Feb 2012 at 3:13

@GoogleCodeExporter
Copy link
Author

Issue solved in version
https://www.phosco.info/publicsvn/php-sql-parser/trunk

Original comment by pho...@gmx.de on 22 Feb 2012 at 4:13

@GoogleCodeExporter
Copy link
Author

Accepted fixed codebase.

Original comment by greenlion@gmail.com on 12 Mar 2012 at 10:48

  • Changed state: Fixed

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

No branches or pull requests

1 participant