Details
Description
select cast('я' as int), cast('я' as time); show warnings;
returns hex warning representation when converting to time/datetime,
and string representation when converting to the other data types:
+-------------------+--------------------+ | cast('я' as int) | cast('я' as time) | +-------------------+--------------------+ | 0 | 00:00:00 | +-------------------+--------------------+ 1 row in set, 2 warnings (0.00 sec) +---------+------+--------------------------------------------+ | Level | Code | Message | +---------+------+--------------------------------------------+ | Warning | 1292 | Truncated incorrect INTEGER value: 'я' | | Warning | 1292 | Truncated incorrect time value: '\xD1\x8F' | +---------+------+--------------------------------------------+ 2 rows in set (0.00 sec)
It should be fixed to print string representation in both cases.
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
MDEV-6092 Weird hex warnings
-
- Closed
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions