pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mohanpatil048@gmail.com
To: pgsql-bugs@postgresql.org
Cc: mohanpatil048@gmail.com
Subject: BUG #14969: Delta in 9.6 and 10
Date: Tue, 12 Dec 2017 16:09:21 +0000
Message-ID: <20171212160921.20160.94349@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      14969
Logged by:          Mohan Patil
Email address:      mohanpatil048@gmail.com
PostgreSQL version: 10.1
Operating system:   ubuntu 14.04
Description:        

When I execute the below query in 9.6 version,I get the result.

But when I execute it on 10.1, it is giving the error,

********** Error **********

ERROR: set-returning functions are not allowed in CASE
SQL state: 0A000
Hint: You might be able to move the set-returning function into a LATERAL
FROM item.

QUERY::
 SELECT t.id, t.name
FROM (SELECT ( CASE
             WHEN CARDINALITY(tier_ids) > 1 THEN UNNEST(tier_ids)
             ELSE NULL
             END ) AS tier_id
      FROM   relation
      WHERE  id = 1001) AS d
 INNER JOIN tier t ON t.id = d.tier_id ;






view thread (2+ messages)  latest in thread

Message-ID: <20171212160921.20160.94349@wrigleys.postgresql.org>
Permalink:  ../20171212160921.20160.94349@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20171212160921.20160.94349@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: mohanpatil048@gmail.com
  Subject: Re: BUG #14969: Delta in 9.6 and 10
  In-Reply-To: <20171212160921.20160.94349@wrigleys.postgresql.org>
  References: <20171212160921.20160.94349@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox