~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/func_group.result

  • Committer: Andrew Hutchings
  • Date: 2011-02-07 17:01:15 UTC
  • mto: (2148.2.3 build)
  • mto: This revision was merged to the branch mainline in revision 2149.
  • Revision ID: andrew@linuxjedi.co.uk-20110207170115-e4sryp5nkb3n2vhy
Implicit joins of the form "SELECT * FROM t1, t2" without WHERE or ON now error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
select max(t1.a1), max(t2.a2) from t1, t2;
177
177
max(t1.a1)      max(t2.a2)
178
178
NULL    NULL
179
 
select max(t1.a1) from t1, t2;
 
179
select max(t1.a1) from t1, t2 where t1.a1 > 0;
180
180
max(t1.a1)
181
181
NULL
182
182
select max(t2.a2), max(t1.a1) from t1, t2;
190
190
1       SIMPLE  NULL    NULL    NULL    NULL    NULL    NULL    NULL    No matching min/max row
191
191
insert into t2 values('AAA', 10, 0.5);
192
192
insert into t2 values('BBB', 20, 1.0);
193
 
select t1.a1, t1.a2, t2.a1, t2.a2 from t1,t2;
 
193
select t1.a1, t1.a2, t2.a1, t2.a2 from t1,t2 where t1.a1 > 0;
194
194
a1      a2      a1      a2
195
195
10      NULL    AAA     10
196
196
10      NULL    BBB     20