set global max_allowed_packet=1073741824 ;
connect u,localhost,root;
#
# MDEV-24909 JSON functions don't respect KILL QUERY / max_statement_time limit
#
set group_concat_max_len= 1000000000 ;
set @obj=concat_ws('' ,'{' , repeat('"a":"b",' , 1250000 /2 ), '"c":"d"}' );
set @arr=concat_ws('' ,'[' , repeat('1234567,' , 1250000 /2 ), '2345678]' );
select length(@obj), length(@arr);
length(@obj) length(@arr)
5000009 5000009
set max_statement_time=0 .0001 ;
SET @old_debug= @@debug_dbug;
SET debug_dbug='+d,json_pause_execution' ;
select json_array_append(@arr, '$[0]' , 1 );
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_array_insert(@arr, '$[0]' , 1 );
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_array_intersect(@arr, @arr);
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_insert(@obj, '$.meta' , 1 );
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_compact(@arr);
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_contains(@obj, '"d"' , '$.c' );
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_contains_path(@obj, 'one' , '$.c' );
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_depth(@obj);
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_equals(@obj, @arr);
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_exists(@obj, '$.c' );
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_extract(@obj, '$.c' );
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_detailed(@arr);
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_keys(@obj, '$.c' );
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_loose(@arr);
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_length(@arr);
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_merge(@obj, @arr);
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_merge_patch(@obj, @obj);
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_merge_preserve(@obj, @arr);
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_normalize(@obj);
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_overlaps(@obj, @arr);
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_remove(@obj,'$.foo' );
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_replace(@obj,'$.foo' ,1 );
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_schema_valid(@obj, '{"type":"object"}' );
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_set(@arr,'$[1000]' ,1 );
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select json_valid(@arr);
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select ST_AsTEXT(ST_GeomFromGeoJSON(JSON_OBJECT("type" , "Point" , "coordinates" , @arr),2 )) as exp;
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select @obj IS JSON;
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
select @arr IS JSON;
ERROR 70100 : Query was interrupted: execution time limit 0 .0001 sec exceeded
SET debug_dbug= @old_debug;
disconnect u;
connection default;
set global max_allowed_packet=default;
#
# End of 10 .6 tests
#
Messung V0.5 in Prozent C=47 H=100 G=78
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-10-08)
¤
*© Formatika GbR, Deutschland