Re: OpenJPA problems running against PG 8.1

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: Andrew Hastie <andrew(at)ahastie(dot)net>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: OpenJPA problems running against PG 8.1
Date: 2011-10-04 02:37:51
Message-ID: 4E8A717F.1010700@ringerc.id.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Craig Ringer 2011-10-04 02:53:48 Re: Moving to git
Previous Message Mike Fowler 2011-10-03 21:31:30 Re: Buildfarm: Test errors - StackOverFlowError