summaryrefslogtreecommitdiff
path: root/mysql-test/r/analyse.result
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2003-03-13 14:34:07 +0100
committerunknown <serg@serg.mysql.com>2003-03-13 14:34:07 +0100
commit012c8f9175c826b8b154fd9d1ef64ce560ff718d (patch)
tree279bac7eb664e08e259db75d039e14d4697fc813 /mysql-test/r/analyse.result
parent50da5c1858ca2343f950e748991714f2f6813a1e (diff)
downloadmariadb-git-012c8f9175c826b8b154fd9d1ef64ce560ff718d.tar.gz
test result updated after merge
Diffstat (limited to 'mysql-test/r/analyse.result')
-rw-r--r--mysql-test/r/analyse.result17
1 files changed, 15 insertions, 2 deletions
diff --git a/mysql-test/r/analyse.result b/mysql-test/r/analyse.result
index c183530df48..5e859bb0b7a 100644
--- a/mysql-test/r/analyse.result
+++ b/mysql-test/r/analyse.result
@@ -1,13 +1,26 @@
drop table if exists t1,t2;
-create table t1 (i int, j int);
-insert into t1 values (1,2), (3,4), (5,6), (7,8);
+create table t1 (i int, j int, empty_string char(10), bool char(1), d date);
+insert into t1 values (1,2,"","Y","2002-03-03"), (3,4,"","N","2002-03-04"), (5,6,"","Y","2002-03-04"), (7,8,"","N","2002-03-05");
select * from t1 procedure analyse();
Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
t1.i 1 7 1 1 0 0 4.0000 2.2361 ENUM('1','3','5','7') NOT NULL
t1.j 2 8 1 1 0 0 5.0000 2.2361 ENUM('2','4','6','8') NOT NULL
+t1.empty_string 0 0 4 0 0.0000 NULL CHAR(0) NOT NULL
+t1.bool N Y 1 1 0 0 1.0000 NULL ENUM('N','Y') NOT NULL
+t1.d 2002-03-03 2002-03-05 10 10 0 0 10.0000 NULL ENUM('2002-03-03','2002-03-04','2002-03-05') NOT NULL
+select * from t1 procedure analyse(2);
+Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
+t1.i 1 7 1 1 0 0 4.0000 2.2361 TINYINT(1) UNSIGNED NOT NULL
+t1.j 2 8 1 1 0 0 5.0000 2.2361 TINYINT(1) UNSIGNED NOT NULL
+t1.empty_string 0 0 4 0 0.0000 NULL CHAR(0) NOT NULL
+t1.bool N Y 1 1 0 0 1.0000 NULL ENUM('N','Y') NOT NULL
+t1.d 2002-03-03 2002-03-05 10 10 0 0 10.0000 NULL ENUM('2002-03-03','2002-03-04','2002-03-05') NOT NULL
create table t2 select * from t1 procedure analyse();
select * from t2;
Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
t1.i 1 7 1 1 0 0 4.0000 2.2361 ENUM('1','3','5','7') NOT NULL
t1.j 2 8 1 1 0 0 5.0000 2.2361 ENUM('2','4','6','8') NOT NULL
+t1.empty_string 0 0 4 0 0.0000 NULL CHAR(0) NOT NULL
+t1.bool N Y 1 1 0 0 1.0000 NULL ENUM('N','Y') NOT NULL
+t1.d 2002-03-03 2002-03-05 10 10 0 0 10.0000 NULL ENUM('2002-03-03','2002-03-04','2002-03-05') NOT NULL
drop table t1,t2;