Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL)
Description
MariaDB [test]> SELECT CAST('foo' AS JSON); |
+---------------------+ |
| CAST('foo' AS JSON) | |
+---------------------+ |
| foo |
|
+---------------------+ |
1 row in set (0.00 sec) |
I don't think it makes any sense. We don't even have format JSON, how can we pretend we can CAST to it? And it's not even a valid JSON text.
Attachments
Issue Links
- relates to
-
MDEV-9143 JSON_xxx functions
-
- Closed
-
serg,
Have you approved this?
What compatibility are we talking about? We cannot use type JSON and don't worry about compatibility, but suddenly for CAST it becomes so important that we fake it (of course, again, without any warnings which a sensible admin could have converted to errrors)?
MariaDB 10.2
Query OK, 1 row affected (0.45 sec)
Records: 1 Duplicates: 0 Warnings: 0
Query OK, 1 row affected (0.07 sec)
How does it make any sense at all, and in what way it's compatible with MySQL?
MySQL 5.7
Query OK, 1 row affected (0.65 sec)
Records: 1 Duplicates: 0 Warnings: 0
*************************** 1. row ***************************
More about "compatibility":
MySQL 5.7
MariaDB 10.2
| �? �? |