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

QueryCount acts differently depending on whether $objOptionalClauses is an array or a QQClause #100

Closed
abePdIta opened this issue Jan 25, 2013 · 3 comments
Labels
Milestone

Comments

@abePdIta
Copy link

Unlike BuildQueryStatement, QueryCount works properly only if $ objOptionalClauses is an array. The problem is in the line "if ($ objOptionalClauses) foreach ($ objOptionalClauses as $ objClause) {".

@scottux
Copy link
Member

scottux commented Feb 2, 2013

Do you think it would be beneficial to wrap objOptionalClause in an array if it isn't already? Or shuold we look a bit deeper?

@abePdIta
Copy link
Author

abePdIta commented Feb 2, 2013

I think the solution you propose is the right one.

olegabr added a commit to olegabr/qcubed that referenced this issue Feb 26, 2013
The same behavior as in the BuildQueryStatement function is implemented for the QueryCount function.
Unit test is added for the QueryCount function.
@olegabr
Copy link
Member

olegabr commented Feb 26, 2013

fixed in #147

@olegabr olegabr closed this as completed Feb 26, 2013
olegabr added a commit to olegabr/qcubed that referenced this issue Feb 28, 2013
spekary added a commit that referenced this issue Mar 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants