diff options
author | unknown <jimw@mysql.com> | 2005-07-21 20:08:54 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-07-21 20:08:54 -0700 |
commit | 41984105287d0c209c2c4a017abb149ca312a831 (patch) | |
tree | 1b22b9007d1f9e9e9b6492eafcf7dd7b276a126c /mysql-test/t/create.test | |
parent | 31ebc6ef71afaf4605ab5d00ddaf8d548683212d (diff) | |
download | mariadb-git-41984105287d0c209c2c4a017abb149ca312a831.tar.gz |
Fix error message generated when trying to create a table in a
non-existent database. (Bug #10407)
mysql-test/r/create.result:
Update results
mysql-test/t/create.test:
Update error numbers
sql/mysql_priv.h:
Adjust some other function signature so table and db information
is passed down into create_frm().
sql/sql_table.cc:
Check for database not existing after hitting an error when
copying the .frm file for 'CREATE TABLE ... LIKE ...', and
pass table and db name into rea_create_table().
sql/table.cc:
Generate specific error message when .frm creation fails because
the database does not exist.
sql/unireg.cc:
Pass database and table name down into create_frm().
Diffstat (limited to 'mysql-test/t/create.test')
-rw-r--r-- | mysql-test/t/create.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysql-test/t/create.test b/mysql-test/t/create.test index ca3446b46fc..d1152736d1c 100644 --- a/mysql-test/t/create.test +++ b/mysql-test/t/create.test @@ -39,7 +39,7 @@ drop table if exists t1; --error 1075 create table t1 (ordid int(8) not null auto_increment, ord varchar(50) not null, primary key (ord,ordid)) engine=heap; --- error 1044,1 +-- error 1049 create table not_existing_database.test (a int); --error 1103 create table `a/a` (a int); @@ -294,7 +294,7 @@ select * from t2; create table t3 like t1; --error 1050 create table t3 like mysqltest.t3; ---error 1044,1 +--error 1049 create table non_existing_database.t1 like t1; --error 1051 create table t3 like non_existing_table; |