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
SELECT`is_document_item`.`id`FROM`is_document_item`LEFT JOIN`is_prijemka_vydejka``document`ON`is_document_item`.`document_id`=`document`.`id`WHERE (`document`.`code`=202750006) AND (`amount`=0)
which is exactly what is expected.
But if I change ->fetchAll() to ->delete() so its generate this:
DELETEFROM`is_document_item`WHERE (`document`.`code`=202750006) AND (`amount`=0)
which causes this error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'document.code' in 'where clause'
Expected Behavior
I think that is clear.
The text was updated successfully, but these errors were encountered:
dg
changed the title
Wrong compatibility with MariaDB and PHP7.4
Missing LEFT JOIN in DELETE
Jan 19, 2022
Version: ^3.0
Bug Description
Wrong SQL generation for joining tables with DELETE.
Steps To Reproduce
This code
generates this query:
which is exactly what is expected.
But if I change ->fetchAll() to ->delete() so its generate this:
which causes this error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'document.code' in 'where clause'
Expected Behavior
I think that is clear.
The text was updated successfully, but these errors were encountered: