mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
59 lines
1.1 KiB
Text
59 lines
1.1 KiB
Text
# Non-windows specific create tests.
|
|
|
|
--source include/not_windows.inc
|
|
|
|
#
|
|
# Bug#19479:mysqldump creates invalid dump
|
|
#
|
|
--disable_warnings
|
|
drop table if exists `about:text`;
|
|
--enable_warnings
|
|
create table `about:text` (
|
|
_id int not null auto_increment,
|
|
`about:text` varchar(255) not null default '',
|
|
primary key (_id)
|
|
);
|
|
|
|
show create table `about:text`;
|
|
drop table `about:text`;
|
|
|
|
|
|
#
|
|
# Bug #29325: create table overwrites .MYD file of other table (datadir)
|
|
#
|
|
|
|
CREATE DATABASE db1;
|
|
CREATE DATABASE db2;
|
|
|
|
USE db2;
|
|
--disable_query_log
|
|
eval CREATE TABLE t1 (b INT) ENGINE MYISAM
|
|
DATA DIRECTORY = '$MYSQLTEST_VARDIR/master-data/db1/';
|
|
--enable_query_log
|
|
|
|
INSERT INTO db2.t1 VALUES (1);
|
|
SELECT * FROM db2.t1;
|
|
RESET QUERY CACHE;
|
|
|
|
USE db1;
|
|
|
|
#no warning from create table
|
|
SET SESSION keep_files_on_create = TRUE;
|
|
--disable_abort_on_error
|
|
CREATE TABLE t1 (a INT) ENGINE MYISAM;
|
|
--enable_abort_on_error
|
|
|
|
CREATE TABLE t3 (a INT) Engine=MyISAM;
|
|
INSERT INTO t3 VALUES (1),(2),(3);
|
|
TRUNCATE TABLE t3;
|
|
SELECT * from t3;
|
|
|
|
SET SESSION keep_files_on_create = DEFAULT;
|
|
|
|
DROP TABLE db2.t1, db1.t3;
|
|
DROP DATABASE db1;
|
|
DROP DATABASE db2;
|
|
USE test;
|
|
|
|
|
|
# End of 5.0 tests
|