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
Entities with no metadata value set for publish_status are not returned, despite a left join value for this field should be 'NULL'.
The key needs to be present for each object for it to display, even if an unset value should evaluate to NULL, i.e. not 'draft'
Some other notes:
I suspect this is an artefact caused by joining on a name/value key table, and as a result I can't see a way round it short of rewriting getRecords from the ground up. Mind you, I'm not an SQL expert.
The text was updated successfully, but these errors were encountered:
mapkyca
changed the title
Mysql left joins behave as inner joins
SQL left joins behave as inner joins
Oct 23, 2016
While trying to do this:
Filter based on publish_status, e.g.
$search['publish_status']['$not'] = 'draft';
I encountered this error:
Entities with no metadata value set for publish_status are not returned, despite a left join value for this field should be 'NULL'.
The key needs to be present for each object for it to display, even if an unset value should evaluate to NULL, i.e. not 'draft'
Some other notes:
I suspect this is an artefact caused by joining on a name/value key table, and as a result I can't see a way round it short of rewriting getRecords from the ground up. Mind you, I'm not an SQL expert.
The text was updated successfully, but these errors were encountered: