Merge bk-internal:/home/bk/mysql-5.1-maint
into pilot.(none):/data/msvensson/mysql/mysql-5.1-new-maint
This commit is contained in:
commit
beb08395ff
@ -5,6 +5,10 @@
|
|||||||
-- source include/not_embedded.inc
|
-- source include/not_embedded.inc
|
||||||
-- source include/have_blackhole.inc
|
-- source include/have_blackhole.inc
|
||||||
|
|
||||||
|
# The server need to be started in $MYSQLTEST_VARDIR since it
|
||||||
|
# uses ../std_data_ln/
|
||||||
|
-- source include/uses_vardir.inc
|
||||||
|
|
||||||
--disable_warnings
|
--disable_warnings
|
||||||
drop table if exists t1,t2;
|
drop table if exists t1,t2;
|
||||||
--enable_warnings
|
--enable_warnings
|
||||||
@ -109,7 +113,7 @@ insert into t1 values(1);
|
|||||||
insert ignore into t1 values(1);
|
insert ignore into t1 values(1);
|
||||||
replace into t1 values(100);
|
replace into t1 values(100);
|
||||||
create table t2 (a varchar(200)) engine=blackhole;
|
create table t2 (a varchar(200)) engine=blackhole;
|
||||||
load data infile '../std_data_ln/words.dat' into table t2;
|
eval load data infile '../std_data_ln/words.dat' into table t2;
|
||||||
alter table t1 add b int;
|
alter table t1 add b int;
|
||||||
alter table t1 drop b;
|
alter table t1 drop b;
|
||||||
create table t3 like t1;
|
create table t3 like t1;
|
||||||
|
15
mysql-test/include/uses_vardir.inc
Normal file
15
mysql-test/include/uses_vardir.inc
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#
|
||||||
|
# Some tests uses LOAD DATA with a relative path
|
||||||
|
# and need to see for example ../std_data
|
||||||
|
#
|
||||||
|
# Also if an absolute path was used, the server might be started
|
||||||
|
# with --secure-file-priv and wouldn't be allowed to LOAD a file
|
||||||
|
# outside of it's vardir anyway
|
||||||
|
#
|
||||||
|
|
||||||
|
let $datadir=
|
||||||
|
query_get_value("SHOW VARIABLES LIKE 'datadir'", Value, 1);
|
||||||
|
if (`select LOCATE("$MYSQLTEST_VARDIR", "$datadir") != 1`)
|
||||||
|
{
|
||||||
|
skip Need mysqld in MYSQLTEST_VARDIR;
|
||||||
|
}
|
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
# The server need to be started in $MYSQLTEST_VARDIR since it
|
||||||
|
# uses ../std_data_ln/
|
||||||
|
-- source include/uses_vardir.inc
|
||||||
|
|
||||||
#
|
#
|
||||||
# This test is a bit tricky as we can't use backup table to overwrite an old
|
# This test is a bit tricky as we can't use backup table to overwrite an old
|
||||||
# table
|
# table
|
||||||
|
Loading…
x
Reference in New Issue
Block a user