~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/create.test

  • Committer: Stewart Smith
  • Date: 2010-02-15 01:56:32 UTC
  • mto: (1273.13.96 build)
  • mto: This revision was merged to the branch mainline in revision 1308.
  • Revision ID: stewart@flamingspork.com-20100215015632-pm7lnxfq5j5uh8kj
move DATABASE() to function plugin. modify parser so that it looks for a function named 'database' when DATABASE() is called. Special case still needed in parser due to hilarity of not-really-reserved words.

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
--error ER_DUP_ENTRY
243
243
create table if not exists t1 select 3 as 'a',3 as 'b';
244
244
show warnings;
245
 
--replace_column 3 # 4 # 5 #
246
 
select * from DATA_DICTIONARY.TABLE_DEFINITION_CACHE WHERE TABLE_COUNT > 1 ORDER BY TABLE_SCHEMA, TABLE_NAME;
 
245
show status like "Opened_tables";
247
246
select * from t1;
248
247
drop table t1;
249
248
 
316
315
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
317
316
show create table t2;
318
317
select * from t2;
319
 
--error 1050
320
318
create table t3 like t1;
321
319
--error 1050
322
320
create table t3 like mysqltest.t3;
327
325
--error 1050
328
326
create temporary table t3 like t1;
329
327
drop table t1, t2, t3;
 
328
drop table t3;
330
329
drop database mysqltest;
331
330
 
332
331
#
1097
1096
# precedence
1098
1097
 
1099
1098
CREATE TEMPORARY TABLE t1(c1 VARCHAR(33), KEY USING BTREE (c1) USING HASH) ENGINE=MEMORY;
1100
 
#SHOW INDEX FROM t1;
 
1099
SHOW INDEX FROM t1;
1101
1100
DROP TABLE t1;
1102
1101
 
1103
1102
CREATE TEMPORARY TABLE t1(c1 VARCHAR(33), KEY USING HASH (c1) USING BTREE) ENGINE=MEMORY;
1104
 
#SHOW INDEX FROM t1;
 
1103
SHOW INDEX FROM t1;
1105
1104
DROP TABLE t1;
1106
1105
 
1107
1106
 
1167
1166
--error 1102
1168
1167
SHOW CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
1169
1168
 
1170
 
##
1171
 
## Bug#21432 Database/Table name limited to 64 bytes, not chars, problems with multi-byte
1172
 
##
 
1169
#
 
1170
# Bug#21432 Database/Table name limited to 64 bytes, not chars, problems with multi-byte
 
1171
#
1173
1172
 
1174
1173
create database имя_базы_в_кодировке_утф8_длиной_больше_чем_45;
1175
1174
use имя_базы_в_кодировке_утф8_длиной_больше_чем_45;
1193
1192
select TABLE_NAME from data_dictionary.tables where
1194
1193
table_schema='test';
1195
1194
 
1196
 
select COLUMN_NAME from data_dictionary.columns where
 
1195
select COLUMN_NAME from information_schema.old_columns where
1197
1196
table_schema='test';
1198
1197
 
1199
1198
select INDEX_NAME from data_dictionary.indexes where
1204
1203
 
1205
1204
drop table имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
1206
1205
 
1207
 
#
 
1206
 
1208
1207
#
1209
1208
# Bug#25629 CREATE TABLE LIKE does not work with INFORMATION_SCHEMA
1210
1209
#