Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 1D821B5DBE4 for ; Mon, 3 Oct 2011 23:38:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 36912-08 for ; Tue, 4 Oct 2011 02:38:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-vw0-f46.google.com (mail-vw0-f46.google.com [209.85.212.46]) by mail.postgresql.org (Postfix) with ESMTP id A10D2B5DBF4 for ; Mon, 3 Oct 2011 23:38:01 -0300 (ADT) Received: by vws1 with SMTP id 1so21818vws.19 for ; Mon, 03 Oct 2011 19:38:01 -0700 (PDT) Received: by 10.52.98.199 with SMTP id ek7mr634664vdb.433.1317695881402; Mon, 03 Oct 2011 19:38:01 -0700 (PDT) Received: from ?IPv6:2001:44b8:6109:9f00:2a0:c9ff:fe6e:ed8f? (2001-44b8-6109-9f00-02a0-c9ff-fe6e-ed8f.static.ipv6.internode.on.net. [2001:44b8:6109:9f00:2a0:c9ff:fe6e:ed8f]) by mx.google.com with ESMTPS id fc4sm15856416vdc.8.2011.10.03.19.37.59 (version=SSLv3 cipher=OTHER); Mon, 03 Oct 2011 19:38:00 -0700 (PDT) Message-ID: <4E8A717F.1010700@ringerc.id.au> Date: Tue, 04 Oct 2011 10:37:51 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Thunderbird/3.1.9 MIME-Version: 1.0 To: Andrew Hastie CC: pgsql-jdbc@postgresql.org Subject: Re: OpenJPA problems running against PG 8.1 References: <4E898B0C.5@ahastie.net> In-Reply-To: <4E898B0C.5@ahastie.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201110/19 X-Sequence-Number: 22272 On 03/10/11 18:14, Andrew Hastie wrote: > 2011-09-30 14:29:41 BST ERROR: invalid escape string > 2011-09-30 14:29:41 BST HINT: Escape string must be empty or one > character. > 2011-09-30 14:29:41 BST STATEMENT: SELECT t0.id, t0.identificationMask, > t0.productName FROM DBTYPE t0 WHERE (t0.identificationMask LIKE $1 > ESCAPE '\\') That's to do with standards_confirming_strings; \ is no longer an escape by default, so '\\' is being interpreted as literally \\ instead of an escaped '\'. Until OpenJPA is updated to recognise this, just SET standards_conforming_strings=off or configure it in postgresql.conf . -- Craig Ringer