diff --git a/frappe/tests/test_query.py b/frappe/tests/test_query.py index 85d1355d71..949c3e9433 100644 --- a/frappe/tests/test_query.py +++ b/frappe/tests/test_query.py @@ -16,5 +16,5 @@ class TestQuery(unittest.TestCase): ["DocType", "parent", "=", "something"], ], ).get_sql(), - "SELECT * FROM `tabDocType` WHERE `tabBOM Update Log`.`name` LIKE 'f%' AND `tabDocType`.`parent`='something'", + "SELECT * FROM `tabDocType` LEFT JOIN `tabBOM Update Log` ON `tabBOM Update Log`.`parent`=`tabDocType`.`name` WHERE `tabBOM Update Log`.`name` LIKE 'f%' AND `tabDocType`.`parent`='something'", )