mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
fde9c7d5b8
into gleb.loc:/home/uchum/work/bk/5.1-opt mysql-test/r/create_not_windows.result: Auto merged mysql-test/r/join_nested.result: Auto merged mysql-test/r/symlink.result: Auto merged mysql-test/r/type_ranges.result: Auto merged mysql-test/r/type_time.result: Auto merged mysql-test/t/create.test: Auto merged mysql-test/t/create_not_windows.test: Auto merged mysql-test/t/symlink.test: Auto merged sql/item_cmpfunc.cc: Auto merged sql/sql_select.cc: Auto merged mysql-test/r/create.result: Merge with 5.0-opt. mysql-test/r/type_enum.result: Merge with 5.0-opt. mysql-test/t/type_enum.test: Merge with 5.0-opt. sql/field_conv.cc: Merge with 5.0-opt.
42 lines
1 KiB
Text
42 lines
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`;
|
|
|
|
|
|
# End of 5.0 tests
|
|
|
|
#
|
|
# Bug#16532:mysql server assert in debug if table det is removed
|
|
#
|
|
use test;
|
|
--disable_warnings
|
|
drop table if exists t1;
|
|
--enable_warnings
|
|
create table t1(a int) engine=myisam;
|
|
insert into t1 values(1);
|
|
--system rm -f $MYSQLTEST_VARDIR/master-data/test/t1.frm
|
|
--echo "We get an error because the table is in the definition cache"
|
|
--error ER_TABLE_EXISTS_ERROR
|
|
create table t1(a int, b int);
|
|
--echo "Flush the cache and recreate the table anew to be able to drop it"
|
|
flush tables;
|
|
show open tables like "t%";
|
|
create table t1(a int, b int, c int);
|
|
--echo "Try to select from the table. This should not crash the server"
|
|
select count(a) from t1;
|
|
drop table t1;
|