Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y94HE-0006AG-IK for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Jan 2015 04:00:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y94HD-00043S-Us for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Jan 2015 04:00:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y8yKk-0000Eh-Dd for pgsql-bugs@postgresql.org; Wed, 07 Jan 2015 21:40:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8yKg-00042s-Vw for pgsql-bugs@postgresql.org; Wed, 07 Jan 2015 21:40:05 +0000 MIME-Version: 1.0 Subject: BUG #12458: Comparison with CHAR is inconsistent between string types To: pgsql-bugs@postgresql.org From: tneumann@users.sourceforge.net Date: Wed, 07 Jan 2015 21:39:32 +0000 Message-ID: <20150107213932.11501.27271@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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: 12458 Logged by: Thomas Neumann Email address: tneumann@users.sourceforge.net PostgreSQL version: 9.4.0 Operating system: Linux 3.16 Description: The following two queries return different results: select 'A'::char(1)='A '::text; select 'A'::char(1)='A '::varchar(10); I would expect both queries to return "true", and this is also suggested by the documentation (section 8.3.), but the text comparison returns false. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs