~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/user_var.result

  • Committer: Brian Aker
  • Date: 2010-12-18 10:14:05 UTC
  • mfrom: (2008.1.3 clean)
  • Revision ID: brian@tangent.org-20101218101405-qjbse29shi9coklg
Merge of user identifier work

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
) ENGINE=DEFAULT COLLATE = utf8_general_ci
173
173
drop table t1;
174
174
set @first_var= cast(NULL as integer);
175
 
create table t1 select @first_var;
176
 
show create table t1;
177
 
Table   Create Table
178
 
t1      CREATE TABLE `t1` (
179
 
  `@first_var` BIGINT DEFAULT NULL
180
 
) ENGINE=DEFAULT COLLATE = utf8_general_ci
181
 
drop table t1;
 
175
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'integer)' at line 1
182
176
set @first_var= NULL;
183
177
create table t1 select @first_var;
184
178
show create table t1;
185
179
Table   Create Table
186
180
t1      CREATE TABLE `t1` (
187
 
  `@first_var` BIGINT DEFAULT NULL
 
181
  `@first_var` BLOB
188
182
) ENGINE=DEFAULT COLLATE = utf8_general_ci
189
183
drop table t1;
190
184
set @first_var= concat(NULL);
209
203
@a
210
204
18446744071710965857
211
205
CREATE TABLE `bigfailure` (
212
 
`afield` BIGINT UNSIGNED NOT NULL
 
206
`afield` BIGINT NOT NULL
213
207
);
214
208
INSERT INTO `bigfailure` VALUES (18446744071710965857);
215
209
SELECT * FROM bigfailure;
232
226
SET @a := (SELECT afield FROM bigfailure);
233
227
SELECT @a;
234
228
@a
235
 
18446744071710965857
 
229
-1998585759
236
230
SET @a := (select afield from (SELECT afield FROM bigfailure) as b);
237
231
SELECT @a;
238
232
@a
239
 
18446744071710965857
 
233
-1998585759
240
234
SET @a := (select * from bigfailure where afield = (SELECT afield FROM bigfailure));
241
235
SELECT @a;
242
236
@a
243
 
18446744071710965857
 
237
-1998585759
244
238
drop table bigfailure;
245
239
create table t1(f1 int, f2 int);
246
240
insert into t1 values (1,2),(2,3),(3,1);