~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-proposed

« back to all changes in this revision

Viewing changes to src/test/regress/sql/subselect.sql

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-10-09 10:28:08 UTC
  • mfrom: (1.4.1) (12.1.8 lucid-security)
  • Revision ID: package-import@ubuntu.com-20131009102808-zrhonpfn94r34fho
Tags: 8.4.18-0ubuntu10.04
New upstream bug fix release (LP: #1237248). No security issues or
critical issues this time; see HISTORY/changelog.gz for details about bug
fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
SELECT 1 AS zero WHERE 1 IN (SELECT 2);
10
10
 
 
11
-- Check grammar's handling of extra parens in assorted contexts
 
12
 
 
13
SELECT * FROM (SELECT 1 AS x) ss;
 
14
SELECT * FROM ((SELECT 1 AS x)) ss;
 
15
 
 
16
(SELECT 2) UNION SELECT 2;
 
17
((SELECT 2)) UNION SELECT 2;
 
18
 
 
19
SELECT ((SELECT 2) UNION SELECT 2);
 
20
SELECT (((SELECT 2)) UNION SELECT 2);
 
21
 
 
22
SELECT (SELECT ARRAY[1,2,3])[1];
 
23
SELECT ((SELECT ARRAY[1,2,3]))[2];
 
24
SELECT (((SELECT ARRAY[1,2,3])))[3];
 
25
 
11
26
-- Set up some simple test tables
12
27
 
13
28
CREATE TABLE SUBSELECT_TBL (