~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/csv_alter_table.test

  • Committer: Brian Aker
  • Date: 2009-07-11 19:23:04 UTC
  • mfrom: (1089.1.14 merge)
  • Revision ID: brian@gaz-20090711192304-ootijyl5yf9jq9kd
Merge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#                             
18
18
#############################################################################
19
19
-- echo # ===== csv_alter_table.1 =====
 
20
--disable_warnings
20
21
DROP TABLE IF EXISTS t1;
 
22
--enable_warnings
21
23
 
22
 
CREATE TABLE t1 (a int NOT NULL) ENGINE = CSV;
 
24
CREATE TEMPORARY TABLE t1 (a int NOT NULL) ENGINE = CSV;
23
25
ALTER TABLE t1 ADD COLUMN b CHAR(5) NOT NULL;
24
26
DESC t1;
25
27
ALTER TABLE t1 DROP COLUMN b;
38
38
# These queries should not succeed / should throw errors
39
39
#############################################################################
40
40
-- echo # ===== csv_alter_table.2 =====
41
41
DROP TABLE IF EXISTS t1;
42
42
 
43
 
CREATE TABLE t1 (a int NOT NULL) ENGINE = CSV;
 
43
CREATE TEMPORARY TABLE t1 (a int NOT NULL) ENGINE = CSV;
44
44
--error ER_CHECK_NOT_IMPLEMENTED
45
45
ALTER TABLE t1 ADD COLUMN b CHAR(5);
46
46
DESC t1;