From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gary Kenney <gary.kenney@xerox.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6285: PreparedStatement#executeUpdate gets syntax error on apostrophe
Date: Thu, 03 Nov 2011 15:19:16 -0400
Message-ID: <7360.1320347956@sss.pgh.pa.us> (raw)
In-Reply-To: <201111031635.pA3GZaOK009935@wwwmaster.postgresql.org>
References: <201111031635.pA3GZaOK009935@wwwmaster.postgresql.org>
"Gary Kenney" <gary.kenney@xerox.com> writes:
> Description: PreparedStatement#executeUpdate gets syntax error on
> apostrophe
> The value that was assigned via PreparedStatement.setString, was "Gary's
> Document". Note the apostrophe. Without the apostrophe, there is no error.
Right offhand I would guess that you are using an old JDBC driver that
isn't prepared for standard_conforming_strings to be turned on.
If that isn't it, I'd suggest asking for help on the pgsql-jdbc mailing
list; I'm not sure how many of those guys read pgsql-bugs.
regards, tom lane
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: tgl@sss.pgh.pa.us, gary.kenney@xerox.com, pgsql-bugs@postgresql.org
Subject: Re: BUG #6285: PreparedStatement#executeUpdate gets syntax error on apostrophe
In-Reply-To: <7360.1320347956@sss.pgh.pa.us>
References: <201111031635.pA3GZaOK009935@wwwmaster.postgresql.org> <7360.1320347956@sss.pgh.pa.us>
* 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