~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/r/delete.result

Removed my_vsnprintf and my_snprintf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1,t2,t3,t11,t12;
2
 
CREATE TABLE t1 (a int, b int);
 
2
CREATE TABLE t1 (a tinyint(3), b tinyint(5));
3
3
INSERT INTO t1 VALUES (1,1);
4
4
INSERT LOW_PRIORITY INTO t1 VALUES (1,2);
5
5
INSERT INTO t1 VALUES (1,3);
47
47
delete from t1 where a=27;
48
48
drop table t1;
49
49
CREATE TABLE `t1` (
50
 
`i` int NOT NULL default '0',
51
 
`i2` int NOT NULL default '0',
 
50
`i` int(10) NOT NULL default '0',
 
51
`i2` int(10) NOT NULL default '0',
52
52
PRIMARY KEY  (`i`)
53
53
);
54
54
DELETE FROM t1 USING t1 WHERE post='1';
104
104
2       12
105
105
select * from t12;
106
106
a       b
 
107
33      10
107
108
0       11
108
109
2       12
109
 
33      10
110
110
select * from t2;
111
111
a       b
112
112
1       21
121
121
2       12
122
122
select * from t12;
123
123
a       b
 
124
33      10
124
125
0       11
125
126
2       12
126
 
33      10
127
127
delete ignore t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b <> (select b from t2 where t11.a < t2.a);
128
128
Warnings:
129
129
Error   1242    Subquery returns more than 1 row
 
130
Error   1242    Subquery returns more than 1 row
130
131
select * from t11;
131
132
a       b
132
133
0       10
133
134
1       11
134
135
select * from t12;
135
136
a       b
 
137
33      10
136
138
0       11
137
 
33      10
138
139
insert into t11 values (2, 12);
139
140
delete from t11 where t11.b <> (select b from t2 where t11.a < t2.a);
140
141
ERROR 21000: Subquery returns more than 1 row
185
186
CREATE TABLE t1 (
186
187
`date` date ,
187
188
`time` time ,
188
 
`seq` int NOT NULL auto_increment,
 
189
`seq` int(10) unsigned NOT NULL auto_increment,
189
190
PRIMARY KEY  (`seq`),
190
191
KEY `seq` (`seq`),
191
192
KEY `time` (`time`),