[MDEV-19770] Prepared statement fails using JSON_OBJECT, UTF-8 value and null value Created: 2019-06-15 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Character Sets, JSON, Prepared Statements |
| Affects Version/s: | 10.2.22, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Patrice Bulat | Assignee: | Rucha Deodhar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux Gentoo running MariaDB 10.2.22 |
||
| Description |
|
Executing a prepared statement using JSON_OBJECT(), a UTF-8 value and a null value fails. CREATE TABLE bug_json_utf8 (
DEALLOCATE PREPARE stmt; |
| Comments |
| Comment by Alice Sherepa [ 2019-06-17 ] | |||||||||||||||||||
|
Thanks! I reproduced it on 10.2-10.4:
| |||||||||||||||||||
| Comment by Patrice Bulat [ 2019-06-21 ] | |||||||||||||||||||
|
Note that both queries fail on MariaDB 10.2.18 under Windows 10 : MariaDB [(none)]> execute stmt using 1;
-----------------------------
----------------------------- MariaDB [(none)]> execute stmt using null;
-----------------------------
----------------------------- |