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

« back to all changes in this revision

Viewing changes to mysql-test/t/derived.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:
301
301
(SELECT 0) t56, (SELECT 0) t57, (SELECT 0) t58, (SELECT 0) t59, (SELECT 0) t60,
302
302
(SELECT 0) t61; # 61 == MAX_TABLES
303
303
 
 
304
--echo #
 
305
--echo #  A nested materialized derived table is used before being populated.
 
306
--echo #  (addon for bug#19077)
 
307
--echo #
 
308
 
 
309
CREATE TABLE t1 (i INT, j BIGINT);
 
310
INSERT INTO t1 VALUES (1, 2), (2, 2), (3, 2);
 
311
SELECT * FROM (SELECT MIN(i) FROM t1
 
312
WHERE j = SUBSTRING('12', (SELECT * FROM (SELECT MIN(j) FROM t1) t2))) t3;
 
313
DROP TABLE t1;
 
314
 
304
315
--echo # End of 5.0 tests