Consider the test case below. The result of the query is different from MySQL.
SELECT ROUND('');
-- MySQL: 0
-- Dolt: Empty set
Besides, it would cause below query return an unexpected result.
SELECT 1 WHERE (ROUND('')) UNION ALL SELECT 1 WHERE (NOT (ROUND(''))) UNION ALL SELECT 1 WHERE ((ROUND('')) IS NULL);
-- Expected: 1
-- Actual: Empty set
I originally find this by building dolt from source code 3c8cc08
Consider the test case below. The result of the query is different from MySQL.
Besides, it would cause below query return an unexpected result.
I originally find this by building dolt from source code 3c8cc08