mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
b048153128
mysql-test/suite/ndb/r/ndb_autoinc.result: Temperory table name shouldn't output in result file for its name is non-deterministic mysql-test/suite/ndb/t/ndb_autoinc.test: don't output temperary file name
37 lines
793 B
Text
37 lines
793 B
Text
DROP TABLE IF EXISTS t1,t2,t3;
|
|
USE test;
|
|
CREATE TABLE t1 (
|
|
id INT AUTO_INCREMENT,
|
|
PRIMARY KEY(id)
|
|
) ENGINE=NDBCLUSTER;
|
|
CREATE TABLE t2 (
|
|
id INT AUTO_INCREMENT,
|
|
KEY(id)
|
|
) ENGINE=NDBCLUSTER;
|
|
ERROR HY000: Can't create table 'test.t2' (errno: 4335)
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t1
|
|
CREATE TABLE t3 (
|
|
id INT AUTO_INCREMENT,
|
|
KEY(id)
|
|
) ENGINE=MYISAM;
|
|
ALTER TABLE t3
|
|
ENGINE NDBCLUSTER;
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
KEY `id` (`id`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
ALTER TABLE t3
|
|
ADD PRIMARY KEY (id);
|
|
SHOW CREATE TABLE t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
PRIMARY KEY (`id`),
|
|
KEY `id` (`id`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
DROP TABLE t1, t3;
|
|
End of 5.1 tests
|