From 10b1f4dd093cb2b21aa9ed09dc453bc52d028b3d Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Mon, 23 Jan 2017 13:32:57 +1100 Subject: MDEV-11866: ANALYZE FORMAT=JSON not predicatable for r_total_time_ms/r_buffer_size [0-9]*[.]?[0-9]* wasn't a sufficient regex to cover the %lg used in Json_writer::add_double. Exponent formats where missed. Here we normalize all the replace_regex expressions for ANALYZE FORMAT=JSON into one include file. Signed-off-by: Daniel Black --- mysql-test/include/analyze-format.inc | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 mysql-test/include/analyze-format.inc (limited to 'mysql-test/include/analyze-format.inc') diff --git a/mysql-test/include/analyze-format.inc b/mysql-test/include/analyze-format.inc new file mode 100644 index 00000000000..65e61b81582 --- /dev/null +++ b/mysql-test/include/analyze-format.inc @@ -0,0 +1,3 @@ +# The time on ANALYSE FORMAT=JSON is rather variable + +--replace_regex /("(r_total_time_ms|r_buffer_size)": )[^, \n]*/\1"REPLACED"/ -- cgit v1.2.1