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

« back to all changes in this revision

Viewing changes to mysql-test/r/union.result

  • 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:
1647
1647
1
1648
1648
2
1649
1649
DROP TABLE t1,t2;
 
1650
#
 
1651
# Bug#11765255 58201:
 
1652
# VALGRIND/CRASH WHEN ORDERING BY MULTIPLE AGGREGATE FUNCTIONS
 
1653
#
 
1654
select 1 as foo
 
1655
union
 
1656
select 2
 
1657
union
 
1658
select 3
 
1659
union
 
1660
select 4
 
1661
order by max(42) + max(1) + max(1) + max(1) + max(1) + max(1)
 
1662
;
 
1663
foo
 
1664
1
 
1665
prepare stmt1 from 'select 1 as foo
 
1666
union
 
1667
select 2
 
1668
union
 
1669
select 3
 
1670
union
 
1671
select 4
 
1672
order by max(42) + max(1) + max(1) + max(1) + max(1) + max(1)
 
1673
';
 
1674
execute stmt1;
 
1675
foo
 
1676
1
 
1677
execute stmt1;
 
1678
foo
 
1679
1
 
1680
select 1 as foo
 
1681
union
 
1682
select 2
 
1683
union
 
1684
select 3
 
1685
union
 
1686
(select 4)
 
1687
order by max(42) + max(1) + max(1) + max(1) + max(1) + max(1)
 
1688
;
 
1689
foo
 
1690
1
 
1691
prepare stmt1 from 'select 1 as foo
 
1692
union
 
1693
select 2
 
1694
union
 
1695
select 3
 
1696
union
 
1697
(select 4)
 
1698
order by max(42) + max(1) + max(1) + max(1) + max(1) + max(1)
 
1699
';
 
1700
execute stmt1;
 
1701
foo
 
1702
1
 
1703
execute stmt1;
 
1704
foo
 
1705
1
 
1706
deallocate prepare stmt1;
1650
1707
End of 5.1 tests