GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
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
Added test for bug #1045.
Solution for #1045
I let isset stay there, as it will build an valid sql-string, even if limit is empty
(Well, empty resultset, but still valid atleast on mysql)
mysql> SELECT * FROM addon LIMIT 0,0; Empty set (0.00 sec)
Yeah, that's OK.
No need for && $query['distinct'] here.
Removed unnecessary comparison in buildQuery
Merge pull request #1050 from suralc/1045-clean-fix-builtQuery
#1045 Fixes incorrect sql-string when passing empty values to buildQuery
Thanks for the fix.