pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: dv <dzenmassta@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Issue getColumns(): Nonstandard use of \\ in a string literal
Date: Fri, 9 Sep 2011 10:18:53 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1109091017130.4040@leary.csoft.net> (raw)
In-Reply-To: <1315566316640-4785925.post@n5.nabble.com>
References: <201102151808.06825.ml-tb@emagixx.de>
<alpine.BSO.2.00.1103192324270.26039@leary.csoft.net>
<1315566316640-4785925.post@n5.nabble.com>
On Fri, 9 Sep 2011, dv wrote:
> As of postgresql 9.1 defaulted to
> standard_conforming_strings = on
>
> These warnings are turned to the errors, so they cannot be ignored any more:
>
> 2011-09-09 14:41:06 MSD ERROR: invalid escape string
> 2011-09-09 14:41:06 MSD HINT: Escape string must be empty or one character.
> 2011-09-09 14:41:06 MSD STATEMENT: SELECT COUNT(a0.id) FROM country a0
> WHERE a0."name" LIKE '%%' ESCAPE '\\'
>
This certainly doesn't look like any JDBC driver generated SQL, so I'm not
sure what your specific complaint here is. It looks to me like you are
using a hardcoded and incorrect escape string. If you show the Java code
associated with this, perhaps some more concrete advice could be offered.
Kris Jurka
view thread (4+ messages)
Message-ID: <alpine.BSO.2.00.1109091017130.4040@leary.csoft.net> Permalink: ../alpine.BSO.2.00.1109091017130.4040@leary.csoft.net/ Also on: postgresql.org/message-id/alpine.BSO.2.00.1109091017130.4040@leary.csoft.net ·
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: books@ejurka.com, dzenmassta@gmail.com Subject: Re: Issue getColumns(): Nonstandard use of \\ in a string literal In-Reply-To: <alpine.BSO.2.00.1109091017130.4040@leary.csoft.net> References: <201102151808.06825.ml-tb@emagixx.de> <alpine.BSO.2.00.1103192324270.26039@leary.csoft.net> <1315566316640-4785925.post@n5.nabble.com> <alpine.BSO.2.00.1109091017130.4040@leary.csoft.net> * 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