~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/create.result

  • Committer: brian
  • Date: 2009-02-26 20:57:39 UTC
  • mfrom: (896.3.16 nofrm896)
  • mto: This revision was merged to the branch mainline in revision 901.
  • Revision ID: brian@bitters-20090226205739-yv4cbwna6myvkq22
Merge of Stewart + Jay's fix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
Field   Type    Null    Key     Default Extra
119
119
a       datetime        YES             NULL    
120
120
b       time    YES             NULL    
121
 
c       date    NO              0000-00-00      
122
 
d       int     NO              0       
123
 
e       decimal(3,1)    NO              0.0     
124
 
f       bigint  NO              0       
 
121
c       date    NO              NULL    
 
122
d       int     NO              NULL    
 
123
e       decimal(3,1)    NO              NULL    
 
124
f       bigint  NO              NULL    
125
125
drop table t2;
126
126
create table t2 select CAST("2001-12-29" AS DATE) as d, CAST("20:45:11" AS TIME) as t, CAST("2001-12-29  20:45:11" AS DATETIME) as dt;
127
127
describe t2;
423
423
explain t2;
424
424
Field   Type    Null    Key     Default Extra
425
425
a       int     YES             NULL    
426
 
b       bigint  NO              0       
427
 
c       bigint  NO              0       
 
426
b       bigint  NO              NULL    
 
427
c       bigint  NO              NULL    
428
428
d       date    YES             NULL    
429
429
e       varchar(1)      YES             NULL    
430
430
f       datetime        YES             NULL    
595
595
t1      CREATE TABLE `t1` (
596
596
  `b` int DEFAULT NULL,
597
597
  `a` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
598
 
  `c` int NOT NULL DEFAULT '0',
 
598
  `c` int NOT NULL,
599
599
  PRIMARY KEY (`a`)
600
600
) ENGINE=InnoDB
601
601
drop table t1;
618
618
show create table t1;
619
619
Table   Create Table
620
620
t1      CREATE TABLE `t1` (
621
 
  `a` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
 
621
  `a` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
622
622
  `b` int NOT NULL,
623
623
  PRIMARY KEY (`a`)
624
624
) ENGINE=InnoDB
1592
1592
 
1593
1593
 
1594
1594
CREATE TABLE t2(c1 TIMESTAMP, c2 TIMESTAMP DEFAULT 0);
 
1595
Warnings:
 
1596
Warning 1292    Incorrect datetime value: '0' for column 'c2' at row 1
1595
1597
drop table t2;
1596
1598
 
1597
1599
CREATE TABLE t2(c1 TIMESTAMP, c2 TIMESTAMP);