~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/strict.test

  • Committer: Vladimir Kolesnikov
  • Date: 2009-03-25 09:18:25 UTC
  • mto: (968.2.17 mordred)
  • mto: This revision was merged to the branch mainline in revision 971.
  • Revision ID: vladimir@primebase.org-20090325091825-gnw5opo5xtprd6k0
test generalizations

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
INSERT IGNORE INTO t1 VALUES('1000'),('-1000');
145
145
INSERT IGNORE INTO t1 VALUES(1000.0),(-1000.0);
146
146
UPDATE IGNORE t1 SET col1=1/NULL where col1=0;
 
147
--sorted_result
147
148
SELECT * FROM t1;
148
149
DROP TABLE t1;
149
150
 
162
163
UPDATE t1 SET col2 ='hellobob' WHERE col2 ='he';
163
164
INSERT IGNORE INTO t1 VALUES ('hellobob', 'hellobob');
164
165
UPDATE IGNORE t1 SET col2 ='hellotrudy' WHERE col2 ='he';
 
166
--sorted_result
165
167
SELECT * FROM t1;
166
168
DROP TABLE t1;
167
169
 
208
210
# Testing of default values
209
211
 
210
212
CREATE TABLE t1 (col1 INT NOT NULL default 99, col2 CHAR(6) NOT NULL);
 
213
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
211
214
SHOW CREATE TABLE t1;
212
215
INSERT INTO t1 VALUES (1, 'hello');
213
216
INSERT INTO t1 (col2) VALUES ('hello2');
320
323
 
321
324
create table t1(a int, b date not null);                                       
322
325
alter table t1 modify a bigint not null;
 
326
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
323
327
show create table t1;
324
328
drop table t1;
325
329
 
329
333
 
330
334
create table t1(a int, b timestamp);
331
335
alter table t1 add primary key(a);
 
336
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
332
337
show create table t1;
333
338
drop table t1;
334
339
create table t1(a int, b timestamp default 20050102030405);
335
340
alter table t1 add primary key(a);
 
341
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
336
342
show create table t1;
337
343
drop table t1;
338
344
 
342
348
#
343
349
create table t1 (date date not null);
344
350
create table t2 select date from t1;
 
351
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
345
352
show create table t2;
346
353
drop table t2,t1;
347
354
 
348
355
create table t1 (i int)
349
356
comment '123456789*123456789*123456789*123456789*123456789*123456789*';
 
357
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
350
358
show create table t1;
351
359
drop table t1;
352
360