~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/user_var.test

  • Committer: Brian Aker
  • Date: 2008-12-24 02:22:58 UTC
  • mfrom: (642.1.53 drizzle-clean-code)
  • Revision ID: brian@tangent.org-20081224022258-57p4cqcu05ah1flc
MergeĀ fromĀ Lee.

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
create table t1 select @first_var;
151
151
show create table t1;
152
152
drop table t1;
 
153
 
 
154
# This is not supported by Drizzle
 
155
--error 1064
153
156
set @first_var= cast(NULL as integer);
154
 
create table t1 select @first_var;
155
 
show create table t1;
156
 
drop table t1;
 
157
#create table t1 select @first_var;
 
158
#show create table t1;
 
159
#drop table t1;
 
160
 
157
161
set @first_var= NULL;
158
162
create table t1 select @first_var;
159
163
show create table t1;
207
211
insert into t1 values (1,2),(2,3),(3,1);
208
212
select @var:=f2 from t1 group by f1 order by f2 desc limit 1;
209
213
select @var;
210
 
# NEEDS INVESTIGATION
 
214
# Bug 310977, uncomment this test after the bug is fixed
211
215
#create table t2 as select @var:=f2 from t1 group by f1 order by f2 desc limit 1;
212
216
#select * from t2;
213
217
#select @var;