From 97b0b743ae2edf820839aabfc59e347d372bb65d Mon Sep 17 00:00:00 2001 From: Aradhya Date: Tue, 1 Nov 2022 14:44:53 +0530 Subject: [PATCH] test: Updated tests for parenttype condition --- frappe/tests/test_query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/tests/test_query.py b/frappe/tests/test_query.py index 6465d4566d..adee42baa5 100644 --- a/frappe/tests/test_query.py +++ b/frappe/tests/test_query.py @@ -21,7 +21,7 @@ class TestQuery(FrappeTestCase): ["DocType", "parent", "=", "something"], ], ).get_sql(), - "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'", + "SELECT * FROM `tabDocType` LEFT JOIN `tabBOM Update Log` ON `tabBOM Update Log`.`parent`=`tabDocType`.`name` AND `tabBOM Update Log`.`parenttype`='DocType' WHERE `tabBOM Update Log`.`name` LIKE 'f%' AND `tabDocType`.`parent`='something'", ) @run_only_if(db_type_is.MARIADB)