Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 39E02914537 for ; Thu, 1 Dec 2011 13:40:40 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RWAcg-0008HJ-1K for pgsql-bugs@postgresql.org; Thu, 01 Dec 2011 17:40:39 +0000 Received: from [204.145.120.229] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RWAcT-00071D-2j for pgsql-bugs@postgresql.org; Thu, 01 Dec 2011 17:40:25 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RWAcS-0007Qi-OD for pgsql-bugs@postgresql.org; Thu, 01 Dec 2011 17:40:24 +0000 Date: Thu, 01 Dec 2011 17:40:24 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6314: The like command does not handle a long string of special chars To: pgsql-bugs@postgresql.org From: d.rericha@healthcareoss.com X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201112/8 X-Sequence-Number: 31819 The following bug has been logged on the website: Bug reference: 6314 Logged by: David Rericha Email address: d.rericha@healthcareoss.com PostgreSQL version: 8.4.5 Operating system: OpenSuSE 11.4 64-bit Description: = Simply set a varchar field in your db to the following string: !"#$%'()*+,-/:;=3D?@[\]^_`{|}~0000&<> I know, I know, who would do this, right? Well, its for a certification. = The like command works fine up with escapes up to: !"#$%''()*+,-/:;=3D?@[% Notice, I added the % to the end. However, if you go any further - no matches: !"#$%''()*+,-/:;=3D?@[\\% Strangely, this works and shouldn't: !"#$%''()*+,-/:;=3D?@[\% Thanks.