You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Better log for: "Encountered empty IN condition with key id" #155
So just step over the case of empty condition-arrays and not do anything about it?
Also that would make that before mentioned (and maybe other) error-logs obsolete, would it?
My guess is that it would fix the problem if the core was changed to do a quick sanity check.
I do the tests in my applications. If the count is 0, skip the whole query. If the count is 1, then I perform an equals instead of an IN. If the count is >1 then perform the IN.
I was just coming here to report the same issue. [2020-01-18 23:17:06] (ERROR @ /var/www/core/xpdo/om/xpdoquery.class.php : 764) Encountered empty NOT IN condition with key id
It would be fantastic if the error was able to report the class causing the issue (instead of just xpdoquery.class.php). Would that even be possible?
Activity
wshawn commentedon Jan 31, 2019
This has been present for years. I typically wrap my INs to ensure there is at least one item.
The code at line 164 (edited)
What is needed:
or
sebastian-marinescu commentedon Jan 31, 2019
So just step over the case of empty condition-arrays and not do anything about it?
Also that would make that before mentioned (and maybe other) error-logs obsolete, would it?
wshawn commentedon Feb 1, 2019
My guess is that it would fix the problem if the core was changed to do a quick sanity check.
I do the tests in my applications. If the count is 0, skip the whole query. If the count is 1, then I perform an equals instead of an IN. If the count is >1 then perform the IN.
muzzwood commentedon Jan 19, 2020
I was just coming here to report the same issue.
[2020-01-18 23:17:06] (ERROR @ /var/www/core/xpdo/om/xpdoquery.class.php : 764) Encountered empty NOT IN condition with key idIt would be fantastic if the error was able to report the class causing the issue (instead of just xpdoquery.class.php). Would that even be possible?