1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00
mysys/my_alloc.c:
  Auto merged
sql/sql_table.cc:
  Auto merged
This commit is contained in:
unknown
2005-08-26 13:24:59 +04:00
6 changed files with 57 additions and 53 deletions

View File

@ -4,29 +4,29 @@ reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
drop database if exists mysqltest;
create database mysqltest;
create table mysqltest.t1 (n int);
insert into mysqltest.t1 values (1);
select * from mysqltest.t1 into outfile 'mysqltest/f1.txt';
create table mysqltest.t2 (n int);
create table mysqltest.t3 (n int);
drop database mysqltest;
ERROR HY000: Error dropping database (can't rmdir './mysqltest/', errno: 17)
use mysqltest;
drop database if exists mysqltest1;
create database mysqltest1;
create table mysqltest1.t1 (n int);
insert into mysqltest1.t1 values (1);
select * from mysqltest1.t1 into outfile 'mysqltest1/f1.txt';
create table mysqltest1.t2 (n int);
create table mysqltest1.t3 (n int);
drop database mysqltest1;
ERROR HY000: Error dropping database (can't rmdir './mysqltest1/', errno: 17)
use mysqltest1;
show tables;
Tables_in_mysqltest
drop database mysqltest;
ERROR HY000: Error dropping database (can't rmdir './mysqltest/', errno: 17)
use mysqltest;
Tables_in_mysqltest1
drop database mysqltest1;
ERROR HY000: Error dropping database (can't rmdir './mysqltest1/', errno: 17)
use mysqltest1;
show tables;
Tables_in_mysqltest
Tables_in_mysqltest1
use test;
create table t1 (n int);
insert into t1 values (1234);
use mysqltest;
use mysqltest1;
show tables;
Tables_in_mysqltest
Tables_in_mysqltest1
use test;
select * from t1;
n

View File

@ -5,32 +5,33 @@
connection master;
--disable_warnings
drop database if exists mysqltest;
drop database if exists mysqltest1;
--enable_warnings
create database mysqltest;
create table mysqltest.t1 (n int);
insert into mysqltest.t1 values (1);
select * from mysqltest.t1 into outfile 'mysqltest/f1.txt';
create table mysqltest.t2 (n int);
create table mysqltest.t3 (n int);
create database mysqltest1;
create table mysqltest1.t1 (n int);
insert into mysqltest1.t1 values (1);
select * from mysqltest1.t1 into outfile 'mysqltest1/f1.txt';
create table mysqltest1.t2 (n int);
create table mysqltest1.t3 (n int);
--error 1010
drop database mysqltest;
use mysqltest;
drop database mysqltest1;
use mysqltest1;
show tables;
# test the branch of the code that deals with the query buffer overflow
disable_query_log;
let $1=50;
--disable_query_log
let $1=1000;
while ($1)
{
eval create table mysqltest.mysql_test_long_table_name$1 (n int);
eval create table mysqltest1.t$1(n int);
dec $1;
}
enable_query_log;
--enable_query_log
--error 1010
drop database mysqltest;
use mysqltest;
drop database mysqltest1;
use mysqltest1;
show tables;
use test;
create table t1 (n int);
@ -38,7 +39,7 @@ insert into t1 values (1234);
sync_slave_with_master;
connection slave;
use mysqltest;
use mysqltest1;
show tables;
use test;
select * from t1;
@ -50,7 +51,5 @@ sync_slave_with_master;
#cleanup
connection slave;
stop slave;
system rm -rf var/master-data/mysqltest;
# End of 4.1 tests
system rm -rf var/master-data/mysqltest1;