summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-03-12 11:38:22 +0200
committerunknown <monty@hundin.mysql.fi>2002-03-12 11:38:22 +0200
commit4c221321b624e55238c641b515e24ad1091cdc93 (patch)
treec217663c9f7a4fba0c5a00acb72b3e980954f780 /mysql-test
parentc13baf70ec937501389ed6e9f94c98635f1c1b76 (diff)
downloadmariadb-git-4c221321b624e55238c641b515e24ad1091cdc93.tar.gz
Added help for --local-infile
Fix for bug on intel where (int32) 1 << 32 == 1, which gave problems when using 32 keys. Allow SET PASSWORD for anonymous user Docs/manual.texi: Changelog client/mysql.cc: Added help for --local-infile client/mysqlimport.c: Merge with 4.0. Patch for LOCAL INFILE handling configure.in: cleanup include/global.h: Fix for bug on intel where (int32) 1 << 32 == 1 mysql-test/r/create.result: Test of CREATE TABLE with 32 keys mysql-test/t/create.test: Test of CREATE TABLE with 32 keys scripts/mysqlhotcopy.sh: Patch for databasenames with space. sql/ha_isam.cc: Fix for bug on intel where (int32) 1 << 32 == 1 sql/ha_myisam.cc: Fix for bug on intel where (int32) 1 << 32 == 1 sql/ha_myisammrg.cc: Fix for bug on intel where (int32) 1 << 32 == 1 sql/mysqld.cc: Added help for --local-infile sql/sql_acl.cc: Allow SET PASSWORD of anonymous user sql/table.cc: Fix for bug on intel where (int32) 1 << 32 == 1
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/create.result37
-rw-r--r--mysql-test/t/create.test8
2 files changed, 45 insertions, 0 deletions
diff --git a/mysql-test/r/create.result b/mysql-test/r/create.result
index 7940d51868a..88d597bd3d7 100644
--- a/mysql-test/r/create.result
+++ b/mysql-test/r/create.result
@@ -12,3 +12,40 @@ table type possible_keys key key_len ref rows Extra
t2 ref B B 21 const 1 where used
a B
3 world
+Table Create Table
+t1 CREATE TABLE `t1` (
+ `a` int(11) NOT NULL default '0',
+ `b` int(11) default NULL,
+ PRIMARY KEY (`a`),
+ KEY `b` (`b`),
+ KEY `b_2` (`b`),
+ KEY `b_3` (`b`),
+ KEY `b_4` (`b`),
+ KEY `b_5` (`b`),
+ KEY `b_6` (`b`),
+ KEY `b_7` (`b`),
+ KEY `b_8` (`b`),
+ KEY `b_9` (`b`),
+ KEY `b_10` (`b`),
+ KEY `b_11` (`b`),
+ KEY `b_12` (`b`),
+ KEY `b_13` (`b`),
+ KEY `b_14` (`b`),
+ KEY `b_15` (`b`),
+ KEY `b_16` (`b`),
+ KEY `b_17` (`b`),
+ KEY `b_18` (`b`),
+ KEY `b_19` (`b`),
+ KEY `b_20` (`b`),
+ KEY `b_21` (`b`),
+ KEY `b_22` (`b`),
+ KEY `b_23` (`b`),
+ KEY `b_24` (`b`),
+ KEY `b_25` (`b`),
+ KEY `b_26` (`b`),
+ KEY `b_27` (`b`),
+ KEY `b_28` (`b`),
+ KEY `b_29` (`b`),
+ KEY `b_30` (`b`),
+ KEY `b_31` (`b`)
+) TYPE=MyISAM
diff --git a/mysql-test/t/create.test b/mysql-test/t/create.test
index d45d013c9fb..1a829eec6a3 100644
--- a/mysql-test/t/create.test
+++ b/mysql-test/t/create.test
@@ -69,3 +69,11 @@ create table t2 (key (b)) select * from t1;
explain select * from t2 where b="world";
select * from t2 where b="world";
drop table t1,t2;
+
+#
+# Test of primary key with 32 index
+#
+
+create table t1 (a int not null, b int, primary key(a), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b), key (b));
+show create table t1;
+drop table t1;