~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to src/test/regress/expected/subselect.out

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-02-05 18:13:52 UTC
  • mfrom: (1.1.10) (10.1.5 oneiric-proposed)
  • Revision ID: package-import@ubuntu.com-20130205181352-3kw4f94ilqklzm7c
Tags: 9.1.8-0ubuntu11.10
* New upstream security/bug fix release: (LP: #1116336)
  - Prevent execution of enum_recv from SQL
    The function was misdeclared, allowing a simple SQL command to crash the
    server.  In principle an attacker might be able to use it to examine the
    contents of server memory.  Our thanks to Sumit Soni (via Secunia SVCRP)
    for reporting this issue. (CVE-2013-0255)
  - See HISTORY/changelog.gz for the other bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
------
18
18
(0 rows)
19
19
 
 
20
-- Check grammar's handling of extra parens in assorted contexts
 
21
SELECT * FROM (SELECT 1 AS x) ss;
 
22
 x 
 
23
---
 
24
 1
 
25
(1 row)
 
26
 
 
27
SELECT * FROM ((SELECT 1 AS x)) ss;
 
28
 x 
 
29
---
 
30
 1
 
31
(1 row)
 
32
 
 
33
(SELECT 2) UNION SELECT 2;
 
34
 ?column? 
 
35
----------
 
36
        2
 
37
(1 row)
 
38
 
 
39
((SELECT 2)) UNION SELECT 2;
 
40
 ?column? 
 
41
----------
 
42
        2
 
43
(1 row)
 
44
 
 
45
SELECT ((SELECT 2) UNION SELECT 2);
 
46
 ?column? 
 
47
----------
 
48
        2
 
49
(1 row)
 
50
 
 
51
SELECT (((SELECT 2)) UNION SELECT 2);
 
52
 ?column? 
 
53
----------
 
54
        2
 
55
(1 row)
 
56
 
 
57
SELECT (SELECT ARRAY[1,2,3])[1];
 
58
 ?column? 
 
59
----------
 
60
        1
 
61
(1 row)
 
62
 
 
63
SELECT ((SELECT ARRAY[1,2,3]))[2];
 
64
 ?column? 
 
65
----------
 
66
        2
 
67
(1 row)
 
68
 
 
69
SELECT (((SELECT ARRAY[1,2,3])))[3];
 
70
 ?column? 
 
71
----------
 
72
        3
 
73
(1 row)
 
74
 
20
75
-- Set up some simple test tables
21
76
CREATE TABLE SUBSELECT_TBL (
22
77
  f1 integer,
547
602
(0 rows)
548
603
 
549
604
--
 
605
-- Test case for cross-type partial matching in hashed subplan (bug #7597)
 
606
--
 
607
create temp table outer_7597 (f1 int4, f2 int4);
 
608
insert into outer_7597 values (0, 0);
 
609
insert into outer_7597 values (1, 0);
 
610
insert into outer_7597 values (0, null);
 
611
insert into outer_7597 values (1, null);
 
612
create temp table inner_7597(c1 int8, c2 int8);
 
613
insert into inner_7597 values(0, null);
 
614
select * from outer_7597 where (f1, f2) not in (select * from inner_7597);
 
615
 f1 | f2 
 
616
----+----
 
617
  1 |  0
 
618
  1 |   
 
619
(2 rows)
 
620
 
 
621
--
550
622
-- Test case for premature memory release during hashing of subplan output
551
623
--
552
624
select '1'::text in (select '1'::name union all select '1'::name);