diff options
author | unknown <Kristofer.Pettersson@naruto.> | 2006-12-11 13:06:59 +0100 |
---|---|---|
committer | unknown <Kristofer.Pettersson@naruto.> | 2006-12-11 13:06:59 +0100 |
commit | e78b4fc276f2d5caf8633d0906ebbc492f70ef8a (patch) | |
tree | c55b0af49d530c3a332cd0a8a92e5c86ddf90fa4 | |
parent | b8151c7e44ea680f4795c7cff93d2302308bbac6 (diff) | |
parent | 1267a7fb3c589ab8417e71d32036a1b2410c5c03 (diff) | |
download | mariadb-git-e78b4fc276f2d5caf8633d0906ebbc492f70ef8a.tar.gz |
Merge naruto.:C:/cpp/bug17489/my41-bug17489
into naruto.:C:/cpp/mysql-4.1-maint
-rw-r--r-- | mysql-test/r/windows.result | 6 | ||||
-rw-r--r-- | mysql-test/t/windows.test | 9 | ||||
-rw-r--r-- | sql/sql_parse.cc | 6 |
3 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/r/windows.result b/mysql-test/r/windows.result index 039c5b1476e..1702fd28c18 100644 --- a/mysql-test/r/windows.result +++ b/mysql-test/r/windows.result @@ -6,3 +6,9 @@ use prn; ERROR 42000: Unknown database 'prn' create table nu (a int); drop table nu; +drop table if exists t1; +CREATE TABLE t1 ( `ID` int(6) ) data directory 'c:/tmp/' index directory 'c:/tmp/' engine=MyISAM; +Warnings: +Warning 0 DATA DIRECTORY option ignored +Warning 0 INDEX DIRECTORY option ignored +drop table t1; diff --git a/mysql-test/t/windows.test b/mysql-test/t/windows.test index d6bcfeb8cb3..b5377a9b9b0 100644 --- a/mysql-test/t/windows.test +++ b/mysql-test/t/windows.test @@ -17,4 +17,13 @@ use prn; create table nu (a int); drop table nu; +# +# Bug17489: ailed to put data file in custom directory use "data directory" option +# +--disable_warnings +drop table if exists t1; +--enable_warnings +CREATE TABLE t1 ( `ID` int(6) ) data directory 'c:/tmp/' index directory 'c:/tmp/' engine=MyISAM; +drop table t1; + # End of 4.1 tests diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index cb2fa0f7014..9f443fae215 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2485,6 +2485,12 @@ mysql_execute_command(THD *thd) goto unsent_create_error; #ifndef HAVE_READLINK + if (lex->create_info.data_file_name) + push_warning(thd, MYSQL_ERROR::WARN_LEVEL_WARN, 0, + "DATA DIRECTORY option ignored"); + if (lex->create_info.index_file_name) + push_warning(thd, MYSQL_ERROR::WARN_LEVEL_WARN, 0, + "INDEX DIRECTORY option ignored"); lex->create_info.data_file_name=lex->create_info.index_file_name=0; #else /* Fix names if symlinked tables */ |