~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/t/row.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
ROW('1', (SELECT 1 FROM t1 WHERE a > 1234));
267
267
--enable_warnings
268
268
DROP TABLE t1;
 
269
 
 
270
--echo #
 
271
--echo # Bug #54190: Comparison to row subquery produces incorrect result
 
272
--echo # 
 
273
 
 
274
SELECT ROW(1,2) = (SELECT 1,2 FROM DUAL WHERE 1 = 0);
 
275
SELECT ROW(1,2) = (SELECT 1,3 FROM DUAL WHERE 1 = 0);
 
276
 
 
277
CREATE TABLE t1 (i INT);
 
278
INSERT INTO t1 () VALUES (1), (2), (3);
 
279
 
 
280
SELECT ROW(1,2) = (SELECT 1,2 FROM t1 WHERE 1 = 0);
 
281
SELECT ROW(1,2) = (SELECT 1,3 FROM t1 WHERE 1 = 0);
 
282
SELECT i FROM t1 WHERE ROW(1,2) = (SELECT 1,2 FROM DUAL WHERE 1 = 0);
 
283
SELECT i FROM t1 WHERE ROW(1,2) = (SELECT 1,3 FROM DUAL WHERE 1 = 0);
 
284
 
 
285
DROP TABLE t1;
 
286
 
 
287
--echo End of 5.1 tests