pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Andrew Hastie <andrew@ahastie.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: OpenJPA problems running against PG 8.1
Date: Tue, 04 Oct 2011 10:37:51 +0800
Message-ID: <4E8A717F.1010700@ringerc.id.au> (raw)
In-Reply-To: <4E898B0C.5@ahastie.net>
References: <4E898B0C.5@ahastie.net>

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



view thread (6+ messages)  latest in thread

Message-ID: <4E8A717F.1010700@ringerc.id.au>
Permalink:  ../4E8A717F.1010700@ringerc.id.au/
Also on:    postgresql.org/message-id/4E8A717F.1010700@ringerc.id.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: ringerc@ringerc.id.au, andrew@ahastie.net
  Subject: Re: OpenJPA problems running against PG 8.1
  In-Reply-To: <4E8A717F.1010700@ringerc.id.au>
  References: <4E898B0C.5@ahastie.net> <4E8A717F.1010700@ringerc.id.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox