Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tg36S-0004cO-HS for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Dec 2012 00:44:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tg36R-0001mg-N1 for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Dec 2012 00:44:43 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tg36Q-0001ma-Na for pgsql-bugs@postgresql.org; Wed, 05 Dec 2012 00:44:42 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tg36P-0008RB-C5 for pgsql-bugs@postgresql.org; Wed, 05 Dec 2012 00:44:41 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tg36O-000158-Jp for pgsql-bugs@postgresql.org; Wed, 05 Dec 2012 00:44:41 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1Tg36N-0005dd-Vg for pgsql-bugs@postgresql.org; Wed, 05 Dec 2012 00:44:39 +0000 Date: Wed, 05 Dec 2012 00:44:39 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7730: intarray representation of empty arrays To: pgsql-bugs@postgresql.org From: elein@varlena.com X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 7730 Logged by: elein Email address: elein@varlena.com PostgreSQL version: 9.2.1 Operating system: Linux Description:=20=20=20=20=20=20=20=20 select NULLIF('{1,2,3}'::integer[] - '{3,2,1}'::integer[], '{}'::integer[]); This returns an empty array. It should return NULL.=20 Per RhodiumToad: the core code represents '{}' as an array with 0 dimensions, whereas intarray represents it as an array with 1 dimension but 0 elements intarray should use the same standards as the core code if possible. I peered at the code and don't see anything untoward but did not have time to spend on it. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs