~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/create.test

  • Committer: Brian Aker
  • Date: 2011-01-25 07:22:15 UTC
  • mfrom: (2109.1.7 drizzle-build)
  • Revision ID: brian@tangent.org-20110125072215-567z6uzy5vdvn4va
Merge in build/timestamp patches/fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
create table if not exists t1 select 3 as 'a',3 as 'b';
248
248
show warnings;
249
249
--replace_column 3 # 4 # 5 #
250
 
select * from DATA_DICTIONARY.TABLE_DEFINITION_CACHE WHERE TABLE_COUNT > 1 ORDER BY TABLE_SCHEMA, TABLE_NAME;
 
250
select * from DATA_DICTIONARY.TABLE_DEFINITION_CACHE WHERE TABLE_COUNT AND TABLE_SCHEMA = SCHEMA() > 1 ORDER BY TABLE_SCHEMA, TABLE_NAME;
251
251
select * from t1;
252
252
drop table t1;
253
253
 
314
314
create database mysqltest;
315
315
create table mysqltest.t3 like t1;
316
316
create temporary table t3 like mysqltest.t3;
 
317
 
317
318
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
318
319
show create table t3;
 
320
 
319
321
create table t2 like t3;
 
322
 
320
323
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
321
324
show create table t2;
322
325
select * from t2;
 
326
 
323
327
--error ER_TABLE_EXISTS_ERROR
324
328
create table t3 like t1;
 
329
 
325
330
--error ER_TABLE_EXISTS_ERROR
326
331
create table t3 like mysqltest.t3;
 
332
 
327
333
--error ER_BAD_DB_ERROR
328
334
create table non_existing_database.t1 like t1;
329
 
--error ER_NO_SUCH_TABLE
330
 
create table t3 like non_existing_table;
 
335
 
 
336
--error ER_TABLE_UNKNOWN
 
337
create table t4 like non_existing_table;
 
338
 
331
339
--error ER_TABLE_EXISTS_ERROR
332
340
create temporary table t3 like t1;
333
341
drop table t1, t2, t3;
1213
1221
#
1214
1222
# Bug#25629 CREATE TABLE LIKE does not work with INFORMATION_SCHEMA
1215
1223
#
1216
 
--error ER_CANT_CREATE_TABLE
 
1224
--error ER_CANT_CREATE_TABLE,ER_TABLE_PERMISSION_DENIED
1217
1225
create table t1 like data_dictionary.processlist;
1218
1226
create table t1 like data_dictionary.processlist engine=innodb;
1219
1227
show create table t1;
1220
1228
drop table t1;
1221
 
--error ER_CANT_CREATE_TABLE
 
1229
--error ER_CANT_CREATE_TABLE,ER_TABLE_PERMISSION_DENIED
1222
1230
create temporary table t1 like data_dictionary.processlist;
1223
1231
create temporary table t1 like data_dictionary.processlist engine=myisam;
1224
1232
show create table t1;