~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/order_by.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:
1862
1862
ERROR 42S22: Unknown column 'MissingCol' in 'order clause'
1863
1863
DROP TABLE bug25126;
1864
1864
CREATE TABLE t1 (a int);
1865
 
SELECT p.a AS val, q.a AS val1 FROM t1 p, t1 q ORDER BY val > 1;
 
1865
SELECT p.a AS val, q.a AS val1 FROM t1 p CROSS JOIN t1 q ORDER BY val > 1;
1866
1866
val     val1
1867
 
SELECT p.a AS val, q.a AS val FROM t1 p, t1 q ORDER BY val;
 
1867
SELECT p.a AS val, q.a AS val FROM t1 p CROSS JOIN t1 q ORDER BY val;
1868
1868
ERROR 23000: Column 'val' in order clause is ambiguous
1869
 
SELECT p.a AS val, q.a AS val FROM t1 p, t1 q ORDER BY val > 1;
 
1869
SELECT p.a AS val, q.a AS val FROM t1 p CROSS JOIN t1 q ORDER BY val > 1;
1870
1870
ERROR 23000: Column 'val' in order clause is ambiguous
1871
1871
DROP TABLE t1;
1872
1872
CREATE TABLE t1 (a int);