Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id E310B2E014A for ; Wed, 13 Feb 2008 13:09:19 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 19330-03 for ; Wed, 13 Feb 2008 13:09:12 -0400 (AST) Received: from ptb-relay02.plus.net (ptb-relay02.plus.net [212.159.14.213]) by postgresql.org (Postfix) with ESMTP id 1FBAE2E00B4 for ; Wed, 13 Feb 2008 13:09:13 -0400 (AST) Received: from [84.51.143.99] (helo=server3.office.archonet.com) by ptb-relay02.plus.net with esmtp (Exim) id 1JPL6c-0000DB-Kd; Wed, 13 Feb 2008 17:09:10 +0000 Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id 61F34274059; Wed, 13 Feb 2008 17:09:10 +0000 (GMT) Message-ID: <47B32436.3050100@archonet.com> Date: Wed, 13 Feb 2008 17:09:10 +0000 From: Richard Huxton User-Agent: Thunderbird 2.0.0.9 (X11/20071031) MIME-Version: 1.0 To: Tom Lane CC: "Campbell, Lance" , pgsql-sql@postgresql.org Subject: Re: Like problem References: <47B31DEC.5050109@archonet.com> <16828.1202921561@sss.pgh.pa.us> In-Reply-To: <16828.1202921561@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Plusnet-Relay: 5c42becc8652d6bdd780156da144d511 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/103 X-Sequence-Number: 30194 Tom Lane wrote: > Richard Huxton writes: >> Campbell, Lance wrote: >>> WARNING: nonstandard use of escape in a string literal >>> LINE 1: ...ct c1 from t1 where c1 like '%abc\_%'; > >> Either indicate you are using an escaped string: LIKE E'%abc\_%' > > Actually that's wrong, what he'd need is LIKE E'%abc\\_%' > (or omit the E and ignore the warning). need to switch to a better coffee... -- Richard Huxton Archonet Ltd