diff options
author | unknown <msvensson@neptunus.(none)> | 2005-06-22 14:10:02 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2005-06-22 14:10:02 +0200 |
commit | 4db138f91a04619f6c53ece45f3b143e633a7566 (patch) | |
tree | e53068db54e844c159cf1431067a242ef99c4ed2 /mysql-test/t/ndb_autodiscover.test | |
parent | 73ea278f6a44f2840a6784a9c856520090aef159 (diff) | |
parent | 19f51d3fa50e1ffda7e25eabc879b63627920a81 (diff) | |
download | mariadb-git-4db138f91a04619f6c53ece45f3b143e633a7566.tar.gz |
Merged from mysql-4.1 to mysql-5.0
client/mysqltest.c:
Auto merged
mysql-test/mysql-test-run.sh:
Auto merged
mysql-test/t/ndb_autodiscover.test:
Auto merged
sql/ha_ndbcluster.h:
Auto merged
sql/item_strfunc.cc:
Auto merged
client/mysqldump.c:
Merge from 4.1 to 5.0
mysql-test/r/ndb_autodiscover.result:
Merge
ndb/test/ndbapi/create_tab.cpp:
Merge
sql/ha_ndbcluster.cc:
Merge
sql/handler.cc:
Merge
sql/handler.h:
Merge
sql/sql_base.cc:
Merge
sql/sql_table.cc:
Merge
Diffstat (limited to 'mysql-test/t/ndb_autodiscover.test')
-rw-r--r-- | mysql-test/t/ndb_autodiscover.test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/t/ndb_autodiscover.test b/mysql-test/t/ndb_autodiscover.test index 80f6f3f35d3..079ebd09ae1 100644 --- a/mysql-test/t/ndb_autodiscover.test +++ b/mysql-test/t/ndb_autodiscover.test @@ -494,6 +494,27 @@ select * from t1; use test; drop database test_only_ndb_tables; +##################################################### +# Test that it's not possible to create tables +# with same name as NDB internal tables +# This will also test that it's not possible to create +# a table with tha same name as a table that can't be +# discovered( for example a table created via NDBAPI) + +--error 1050 +CREATE TABLE sys.SYSTAB_0 (a int); +--error 1105 +select * from sys.SYSTAB_0; + +CREATE TABLE IF NOT EXISTS sys.SYSTAB_0 (a int); +show warnings; +--error 1105 +select * from sys.SYSTAB_0; + +--error 1051 +drop table sys.SYSTAB_0; +drop table IF EXISTS sys.SYSTAB_0; + ###################################################### # Note! This should always be the last step in this # file, the table t9 will be used and dropped |