mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 09:14:17 +01:00
12 lines
341 B
Text
12 lines
341 B
Text
|
#
|
||
|
# MDEV-31121: ANALYZE statement produces 0 for all timings in embedded serve
|
||
|
#
|
||
|
create table t1 (a int);
|
||
|
insert into t1 values (0),(0);
|
||
|
set @js='$out';
|
||
|
set @out=(select json_extract(@js,'$**.query_block.r_total_time_ms'));
|
||
|
select cast(json_extract(@out,'$[0]') as DOUBLE) > 0;
|
||
|
cast(json_extract(@out,'$[0]') as DOUBLE) > 0
|
||
|
1
|
||
|
drop table t1;
|