Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upBetter log for: "Encountered empty IN condition with key id" #155
Comments
sebastian-marinescu
referenced this issue
Jan 31, 2019
Closed
Better log for: "Encountered empty IN condition with key id" #14316
This comment has been minimized.
This comment has been minimized.
wshawn
commented
Jan 31, 2019
This has been present for years. I typically wrap my INs to ensure there is at least one item.
What is needed:
or
|
This comment has been minimized.
This comment has been minimized.
So just step over the case of empty condition-arrays and not do anything about it? |
This comment has been minimized.
This comment has been minimized.
wshawn
commented
Feb 1, 2019
My guess is that it would fix the problem if the core was changed to do a quick sanity check. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sebastian-marinescu commentedJan 31, 2019
Feature request
Summary
Sometimes I get this error in the logs:
Looking at this line:
https://github.com/modxcms/xpdo/blob/3.x/src/xPDO/Om/xPDOQuery.php#L783 or
https://github.com/modxcms/revolution/blob/2.x/core/xpdo/om/xpdoquery.class.php#L764
it doesn't even seem to be something grave - but I'd still like to find the origin of it.
That's why I would like more information on this log.
Why is it needed?
Better debugging and fixing of possible errors.
Suggested solution(s)
I would like to see the complete
$query
or also where it occurred.I thought I'd get more information by logging
$conditions
:But logging
$conditions
didn't help much:If someone can give me a hint, or a recommendation, I'd be happy to test and prepare a PR.