Skip to content

Logical operators with numeric string incorrectly evaluates to FALSE #9821

@momoway

Description

@momoway

This issue seems related to other inconsistencies in string-to-boolean casting, as previously discussed in issue #9799.

SELECT '3bxu' OR FALSE;
-- MySQL: 1, Dolt: 0
SELECT '3bxu' AND TRUE;
-- MySQL: 1, Dolt: 0
SELECT '3bxu' XOR FALSE;
-- MySQL: 1, Dolt: 0
mysql> select dolt_version();
+----------------+
| dolt_version() |
+----------------+
| 1.59.6         |
+----------------+
1 row in set (0.00 sec)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions