mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-26724 Endless loop in json_escape_to_string upon ... empty string
.. part#2: correctly pass the charset to JSON [un]escape functions
This commit is contained in:
@ -215,6 +215,19 @@ ANALYZE TABLE t PERSISTENT FOR ALL;
|
||||
select * from t1;
|
||||
drop table t1;
|
||||
|
||||
create table t1 (a char(1)) character set latin1;
|
||||
insert into t1 values (0xD1);
|
||||
select hex(a) from t1;
|
||||
set histogram_type='json_hb';
|
||||
analyze table t1 persistent for all;
|
||||
|
||||
select decode_histogram(hist_type, histogram)
|
||||
from mysql.column_stats
|
||||
where db_name=database() and table_name='t1';
|
||||
|
||||
select * from t1;
|
||||
drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # ASAN use-after-poison my_strnxfrm_simple_internal / Histogram_json_hb::range_selectivity ...
|
||||
--echo # (Just the testcase)
|
||||
|
Reference in New Issue
Block a user