Re: OpenJPA problems running against PG 8.1 - Mailing list pgsql-jdbc

From Craig Ringer
Subject Re: OpenJPA problems running against PG 8.1
Date
Msg-id 4E8A717F.1010700@ringerc.id.au
Whole thread Raw
In response to OpenJPA problems running against PG 8.1  (Andrew Hastie <andrew@ahastie.net>)
Responses Re: OpenJPA problems running against PG 8.1
List 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

pgsql-jdbc by date:

Previous
From: Mike Fowler
Date:
Subject: Re: Buildfarm: Test errors - StackOverFlowError
Next
From: Craig Ringer
Date:
Subject: Re: Moving to git