Skip to content

Unexpected Results when Using ROUND() #7222

Description

@suyZhong

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions