From: kenaniah@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #6401: IS DISTINCT FROM improperly compares geomoetric datatypes
Date: Wed, 18 Jan 2012 21:14:12 +0000
Message-ID: <E1Rncpg-00077z-S7@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 6401
Logged by: Kenaniah Cerny
Email address: kenaniah@gmail.com
PostgreSQL version: 9.1.2
Operating system: Centos 6 x86_64
Description:
----
SELECT point(2, 3) IS DISTINCT FROM point(2, 3);
----
ERROR: operator does not exist: point = point
LINE 1: SELECT point(2, 3) IS DISTINCT FROM point(2, 3)
^
HINT: No operator matches the given name and argument type(s). You might
need to add explicit type casts.
----
According to the docs
(http://www.postgresql.org/docs/current/static/functions-geometry.html#FUNCTIONS-GEOMETRY),
the "same as" operator is the ~= operator, not the = operator.
This problem cascades to the comparison of complex types, such as "OLD IS
DISTINCT FROM NEW" in the context of plpgsql.
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: kenaniah@gmail.com
Subject: Re: BUG #6401: IS DISTINCT FROM improperly compares geomoetric datatypes
In-Reply-To: <E1Rncpg-00077z-S7@wrigleys.postgresql.org>
References: <E1Rncpg-00077z-S7@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