summaryrefslogtreecommitdiff
path: root/mysql-test/r/analyze_stmt.result
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2014-10-12 20:48:07 +0400
committerSergei Petrunia <psergey@askmonty.org>2014-10-12 20:48:07 +0400
commitfec5ab5a56cb9a45c621207620cc85079cddf537 (patch)
tree3db33493c57db3b0acfdd2fe18e4eab7a9f960fd /mysql-test/r/analyze_stmt.result
parent5c33632b50ab37641b2b0a60729ffda3dbeac31c (diff)
downloadmariadb-git-fec5ab5a56cb9a45c621207620cc85079cddf537.tar.gz
MDEV-6396: ANALYZE INSERT/REPLACE is accepted, but does not produce a plan
Add ANALYZE STMT handling into INSERT command.
Diffstat (limited to 'mysql-test/r/analyze_stmt.result')
-rw-r--r--mysql-test/r/analyze_stmt.result17
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/r/analyze_stmt.result b/mysql-test/r/analyze_stmt.result
index 53c3188cd4c..e5b3b804202 100644
--- a/mysql-test/r/analyze_stmt.result
+++ b/mysql-test/r/analyze_stmt.result
@@ -259,3 +259,20 @@ analyze delete from t1 returning *;
id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 0 0 100.00 100.00
drop table t1;
+#
+# MDEV-6396: ANALYZE INSERT/REPLACE is accepted, but does not produce a plan
+#
+create table t1 (a int primary key, b int);
+analyze insert into t1 values (1,1);
+id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
+1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
+select * from t1;
+a b
+1 1
+analyze replace t1 values (1,2);
+id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
+1 INSERT t1 ALL NULL NULL NULL NULL NULL NULL 100.00 100.00 NULL
+select * from t1;
+a b
+1 2
+drop table t1;