~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/innodb.test

  • Committer: Brian Aker
  • Date: 2010-09-12 01:42:27 UTC
  • mto: (1759.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1762.
  • Revision ID: brian@tangent.org-20100912014227-krt6d9z5ohqrokhb
Add two plugins to handle the string and math functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#                                                                     #
12
12
#######################################################################
13
13
 
 
14
-- source include/have_innodb.inc
14
15
SET @orig_lock_wait_timeout= @@innodb_lock_wait_timeout; 
15
16
SET GLOBAL innodb_lock_wait_timeout=2;
16
17
 
304
305
select * from t1;
305
306
update t1 set col2='7' where col1='4';
306
307
select * from t1;
307
 
ALTER TABLE t1 ADD co3 INT DEFAULT 42 NOT NULL;
 
308
alter table t1 add co3 int not null;
308
309
select * from t1;
309
310
update t1 set col2='9' where col1='2';
310
311
select * from t1;
905
906
# Test error handling
906
907
 
907
908
# Embedded server doesn't chdir to data directory
908
 
--replace_result $DRIZZLETEST_VARDIR . master-data/ ''
 
909
--replace_result $MYSQLTEST_VARDIR . master-data/ ''
909
910
--error ER_WRONG_FK_DEF
910
911
create table t2 (id int not null, id2 int not null, constraint t1_id_fk foreign key (id2,id) references t1 (id)) engine = innodb;
911
912
 
1099
1100
#
1100
1101
 
1101
1102
# Embedded server doesn't chdir to data directory
1102
 
--replace_result $DRIZZLETEST_VARDIR . master-data/ ''
 
1103
--replace_result $MYSQLTEST_VARDIR . master-data/ ''
1103
1104
create table t1 (v varchar(16383), key(v));
1104
1105
drop table t1;
1105
1106
create table t1 (v varchar(16383));
1306
1307
set foreign_key_checks=0;
1307
1308
create table t2 (a int primary key, b int, foreign key (b) references t1(a)) engine = innodb;
1308
1309
# Embedded server doesn't chdir to data directory
1309
 
--replace_result $DRIZZLETEST_VARDIR . master-data/ ''
 
1310
--replace_result $MYSQLTEST_VARDIR . master-data/ ''
1310
1311
-- error 1005
1311
1312
create table t1(a char(10) primary key, b varchar(20)) engine = innodb;
1312
1313
set foreign_key_checks=1;
1766
1767
drop table t1, t2, t3, t5, t6, t8, t9;
1767
1768
 
1768
1769
# bug 18934, "InnoDB crashes when table uses column names like DB_ROW_ID"
1769
 
--error ER_CANT_CREATE_TABLE,1166
 
1770
--error ER_CANT_CREATE_TABLE
1770
1771
CREATE TABLE t1 (DB_ROW_ID int) engine=innodb;
1771
1772
 
1772
1773
#
1842
1843
# mysqltest first does replace_regex, then replace_result
1843
1844
--replace_regex /'[^']*test\/#sql-[0-9a-f_]*'/'#sql-temporary'/
1844
1845
# Embedded server doesn't chdir to data directory
1845
 
--replace_result $DRIZZLETEST_VARDIR . master-data/ ''
 
1846
--replace_result $MYSQLTEST_VARDIR . master-data/ ''
1846
1847
--error ER_ERROR_ON_RENAME
1847
1848
ALTER TABLE t2 MODIFY a INT NOT NULL;
1848
1849
DELETE FROM t1;