Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL)
Description
This query correctly returns TRUE:
SELECT TIME'10:20:30' IN (102030,TIME'10:20:31'); |
+-------------------------------------------+
|
| TIME'10:20:30' IN (102030,TIME'10:20:31') |
|
+-------------------------------------------+
|
| 1 |
|
+-------------------------------------------+
|
If I add more values into the IN list, it returns FALSE with a warning:
SELECT TIME'10:20:30' IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32'); |
SHOW WARNINGS;
|
+--------------------------------------------------------------------------+
|
| TIME'10:20:30' IN (102030,TIME'10:20:31',TIMESTAMP'2001-01-01 10:20:32') |
|
+--------------------------------------------------------------------------+
|
| 0 |
|
+--------------------------------------------------------------------------+
|
+---------+------+------------------------------------+
|
| Level | Code | Message |
|
+---------+------+------------------------------------+
|
| Warning | 1292 | Incorrect datetime value: '102030' |
|
+---------+------+------------------------------------+
|
CASE demonstrates the same problem. See MDEV-11555.
Attachments
Issue Links
- blocks
-
MDEV-4912 Data type plugin API version 1
- Closed
- relates to
-
MDEV-11555 CASE with a mixture of TIME and DATETIME returns a wrong result
- Closed
-
MDEV-11497 Wrong result for (int_expr IN (mixture of signed and unsigned expressions))
- Closed