Skip to content

Commit 9f918b9

Browse files
committed
take into account scientific notation of floats in regex_replace
this fixes occasional main.cte_recursive failures
1 parent 31a9b3f commit 9f918b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql-test/t/cte_recursive.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ drop table t1;
15101510
--echo # MDEV-10773: ANALYZE for query with recursive CTE
15111511
--echo #
15121512

1513-
--replace_regex /"r_total_time_ms": [0-9]*[.]?[0-9]*/"r_total_time_ms": "REPLACED"/
1513+
--replace_regex /"r_total_time_ms": [0-9]*[.]?[0-9]*(e[-+]?[0-9]+)?/"r_total_time_ms": "REPLACED"/
15141514
analyze format=json
15151515
with recursive src(counter) as
15161516
(select 1

0 commit comments

Comments
 (0)