summaryrefslogtreecommitdiff
path: root/mysql-test/t/analyze_format_json.test
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-07-13 07:21:21 +0400
committerAlexander Barkov <bar@mariadb.org>2017-07-13 07:21:21 +0400
commit29acdcd5427e13bc3aefbbeee17b42bfe23dea84 (patch)
treef8f5365594c3b43e01891b7017f47fa6b934c646 /mysql-test/t/analyze_format_json.test
parente33bda183e80ff63a984ed2a938467950b23a3fd (diff)
parentdaec0004502a1f8c2ff7d46de92a61b5c4da1d6c (diff)
downloadmariadb-git-MDEV-9804.tar.gz
Merge remote-tracking branch 'origin/bb-10.2-ext' into 10.3MDEV-9804
Conflicts: VERSION debian/mariadb-backup-10.2.files debian/mariadb-backup-10.2.install debian/mariadb-backup-10.3.files mysql-test/unstable-tests
Diffstat (limited to 'mysql-test/t/analyze_format_json.test')
-rw-r--r--mysql-test/t/analyze_format_json.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/analyze_format_json.test b/mysql-test/t/analyze_format_json.test
index 88a907718d9..915e0c2bf3c 100644
--- a/mysql-test/t/analyze_format_json.test
+++ b/mysql-test/t/analyze_format_json.test
@@ -212,3 +212,15 @@ GROUP BY sq ORDER BY gc;
drop table t1,t2,t3;
+
+--echo #
+--echo # MDEV-13286: Floating point exception in Filesort_tracker::print_json_members(Json_writer*)
+--echo #
+create table t0(a int);
+insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
+create table t1 (a int, b int, c int);
+insert into t1 select a,a,a from t0;
+create table t2 as select * from t1;
+--source include/analyze-format.inc
+analyze format=json select a, (select t2.b from t2 where t2.a<t1.a order by t2.c limit 1) from t1 where t1.a<0;
+drop table t0,t1,t2;