~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/include/mix2.inc

  • Committer: Barry.Leslie at PrimeBase
  • Date: 2011-01-22 03:22:44 UTC
  • mfrom: (2101 staging)
  • mto: (2228.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2230.
  • Revision ID: barry.leslie@primebase.com-20110122032244-ukbe3mlj7fs8xph6
Merged with lp:drizzle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
352
352
select * from t1;
353
353
update t1 set col2='7' where col1='4';
354
354
select * from t1;
355
 
alter table t1 add co3 int not null;
 
355
alter table t1 add co3 int DEFAULT 42 not null;
356
356
select * from t1;
357
357
update t1 set col2='9' where col1='2';
358
358
select * from t1;
929
929
eval create $temp table t2 (col1 int,stamp TIMESTAMP,INDEX stamp_idx
930
930
(stamp))ENGINE=$engine_type;
931
931
insert into t1 values (1),(2),(3);
932
 
# Note that timestamp 3 is wrong
933
 
--error 1685 # Bad timestamp
934
 
insert into t2 values (1, 20020204130000),(2, 20020204130000),(4,20020204310000 ),(5,20020204230000);
935
 
SELECT col1 FROM t1 UNION SELECT col1 FROM t2 WHERE stamp <
936
 
'20020204120000' GROUP BY col1;
 
932
insert into t2 values (1, 20020204130000);
 
933
insert into t2 values (2, 20020204130000);
 
934
--error ER_INVALID_TIMESTAMP_VALUE # Bad timestamp
 
935
insert into t2 values (4, 20020204310000);
 
936
insert into t2 values (5, 20020204230000);
 
937
SELECT col1 FROM t1 UNION SELECT col1 FROM t2 WHERE stamp < '20020204120000' GROUP BY col1;
937
938
drop table t1,t2;
938
939
 
939
940
#
2162
2163
eval create $temp table t1 ( a int ) ENGINE=$engine_type;
2163
2164
BEGIN;
2164
2165
INSERT INTO t1 VALUES (1);
 
2166
COMMIT;
2165
2167
eval ALTER TABLE t1 ENGINE=$engine_type;
2166
2168
DROP TABLE t1;
2167
2169