~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/default.result

  • Committer: Mark Atwood
  • Date: 2008-10-03 01:39:40 UTC
  • mto: This revision was merged to the branch mainline in revision 437.
  • Revision ID: mark@fallenpegasus.com-20081003013940-mvefjo725dltz41h
rename logging_noop to logging_query

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
drop table if exists t1,t2,t3,t4,t5,t6;
2
 
drop database if exists mysqltest;
3
 
CREATE TABLE t1 (a varbinary(30) NOT NULL DEFAULT ' ',
4
 
b varbinary(1) NOT NULL DEFAULT ' ',
5
 
c varbinary(4) NOT NULL DEFAULT '0000',
6
 
d blob NULL,
7
 
e blob NULL,
8
 
f blob NULL,
9
 
g blob NULL,
10
 
h blob NULL,
11
 
i blob NULL,
12
 
j blob NULL,
13
 
k blob NULL,
14
 
l blob NULL,
15
 
m blob NULL,
16
 
n blob NULL,
17
 
o blob NULL,
18
 
p blob NULL,
19
 
q varbinary(30) NOT NULL DEFAULT ' ',
20
 
r varbinary(30) NOT NULL DEFAULT ' ',
21
 
s blob NULL,
22
 
t varbinary(4) NOT NULL DEFAULT ' ',
23
 
u varbinary(1) NOT NULL DEFAULT ' ',
24
 
v varbinary(30) NOT NULL DEFAULT ' ',
25
 
w varbinary(30) NOT NULL DEFAULT ' ',
26
 
x blob NULL,
27
 
y varbinary(5) NOT NULL DEFAULT ' ',
28
 
z varbinary(20) NOT NULL DEFAULT ' ',
29
 
a1 varbinary(30) NOT NULL DEFAULT ' ',
30
 
b1 blob NULL)
31
 
ENGINE=InnoDB DEFAULT COLLATE=utf8_bin;
32
 
INSERT into t1 (b) values ('1');
33
 
SHOW WARNINGS;
34
 
Level   Code    Message
35
 
SELECT * from t1;
36
 
a       b       c       d       e       f       g       h       i       j       k       l       m       n       o       p       q       r       s       t       u       v       w       x       y       z       a1      b1
37
 
        1       0000    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL                    NULL                                    NULL                            NULL
38
 
CREATE TEMPORARY TABLE t2 (a varbinary(30) NOT NULL DEFAULT ' ',
39
 
b varbinary(1) NOT NULL DEFAULT ' ',
40
 
c varbinary(4) NOT NULL DEFAULT '0000',
41
 
d blob NULL,
42
 
e blob NULL,
43
 
f blob NULL,
44
 
g blob NULL,
45
 
h blob NULL,
46
 
i blob NULL,
47
 
j blob NULL,
48
 
k blob NULL,
49
 
l blob NULL,
50
 
m blob NULL,
51
 
n blob NULL,
52
 
o blob NULL,
53
 
p blob NULL,
54
 
q varbinary(30) NOT NULL DEFAULT ' ',
55
 
r varbinary(30) NOT NULL DEFAULT ' ',
56
 
s blob NULL,
57
 
t varbinary(4) NOT NULL DEFAULT ' ',
58
 
u varbinary(1) NOT NULL DEFAULT ' ',
59
 
v varbinary(30) NOT NULL DEFAULT ' ',
60
 
w varbinary(30) NOT NULL DEFAULT ' ',
61
 
x blob NULL,
62
 
y varbinary(5) NOT NULL DEFAULT ' ',
63
 
z varbinary(20) NOT NULL DEFAULT ' ',
64
 
a1 varbinary(30) NOT NULL DEFAULT ' ',
65
 
b1 blob NULL)
66
 
ENGINE=MyISAM DEFAULT COLLATE=utf8_bin;
67
 
SHOW CREATE TABLE t2;
68
 
Table   Create Table
69
 
t2      CREATE TEMPORARY TABLE `t2` (
70
 
  `a` VARBINARY(30) NOT NULL DEFAULT 0x20,
71
 
  `b` VARBINARY(1) NOT NULL DEFAULT 0x20,
72
 
  `c` VARBINARY(4) NOT NULL DEFAULT 0x30303030,
73
 
  `d` BLOB,
74
 
  `e` BLOB,
75
 
  `f` BLOB,
76
 
  `g` BLOB,
77
 
  `h` BLOB,
78
 
  `i` BLOB,
79
 
  `j` BLOB,
80
 
  `k` BLOB,
81
 
  `l` BLOB,
82
 
  `m` BLOB,
83
 
  `n` BLOB,
84
 
  `o` BLOB,
85
 
  `p` BLOB,
86
 
  `q` VARBINARY(30) NOT NULL DEFAULT 0x20,
87
 
  `r` VARBINARY(30) NOT NULL DEFAULT 0x20,
88
 
  `s` BLOB,
89
 
  `t` VARBINARY(4) NOT NULL DEFAULT 0x20,
90
 
  `u` VARBINARY(1) NOT NULL DEFAULT 0x20,
91
 
  `v` VARBINARY(30) NOT NULL DEFAULT 0x20,
92
 
  `w` VARBINARY(30) NOT NULL DEFAULT 0x20,
93
 
  `x` BLOB,
94
 
  `y` VARBINARY(5) NOT NULL DEFAULT 0x20,
95
 
  `z` VARBINARY(20) NOT NULL DEFAULT 0x20,
96
 
  `a1` VARBINARY(30) NOT NULL DEFAULT 0x20,
97
 
  `b1` BLOB
98
 
) ENGINE=MyISAM COLLATE = utf8_bin
99
 
INSERT into t2 (b) values ('1');
100
 
SHOW WARNINGS;
101
 
Level   Code    Message
102
 
SELECT * from t2;
103
 
a       b       c       d       e       f       g       h       i       j       k       l       m       n       o       p       q       r       s       t       u       v       w       x       y       z       a1      b1
104
 
        1       0000    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL                    NULL                                    NULL                            NULL
105
 
drop table t1;
106
 
drop table t2;
107
 
create table bug20691 (i int, d datetime NOT NULL, dn datetime NULL);
108
 
insert into bug20691 values (7, DEFAULT, DEFAULT), (7, '1975-07-10 07:10:03', '1978-01-13 14:08:51'), (7, DEFAULT, DEFAULT);
109
 
ERROR HY000: Field 'd' doesn't have a default value
110
 
insert into bug20691 values (7, '1975-07-10 07:10:03', DEFAULT);
111
 
select * from bug20691 order by i asc;
112
 
i       d       dn
113
 
7       1975-07-10 07:10:03     NULL
114
 
drop table bug20691;
115
 
create table bug20691 (
116
 
b enum('small', 'medium', 'large', 'enormous', 'ellisonego') not null,
117
 
d date not null,
118
 
e int not null,
119
 
g blob not null,
120
 
h datetime not null,
121
 
i decimal not null,
122
 
x int);
123
 
insert into bug20691 values (3, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 1);
124
 
insert into bug20691 (x) values (2);
125
 
ERROR HY000: Field 'd' doesn't have a default value
126
 
insert into bug20691 values (3, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 3);
127
 
insert into bug20691 values (DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, 4);
128
 
ERROR HY000: Field 'b' doesn't have a default value
129
 
select * from bug20691 order by x asc;
130
 
b       d       e       g       h       i       x
131
 
large   0007-01-01      11      17      0019-01-01 00:00:00     23      1
132
 
large   0007-01-01      11      17      0019-01-01 00:00:00     23      3
133
 
drop table bug20691;
134
 
create table t1 (id int not null default 1);
135
 
insert into t1 values(default);
136
 
drop table t1;