From: Chris Wareham <cwareham@londonandpartners.com>
To: JavaNoobie <vivek.mv@enzentech.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: how to Escape single quotes with PreparedStatment
Date: Mon, 22 Aug 2011 11:32:48 +0100
Message-ID: <4E523050.10000@londonandpartners.com> (raw)
In-Reply-To: <4E5229C8.1000300@londonandpartners.com>
References: <1313841345919-4718287.post@n5.nabble.com>
<4E5229C8.1000300@londonandpartners.com>
On 22/08/11 11:04, Chris Wareham wrote:
>
> stmt = con.prepareStatement(query);
>
Should of course be:
stmt = con.prepareStatement(query.toString());
Chris
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: cwareham@londonandpartners.com, vivek.mv@enzentech.com
Subject: Re: how to Escape single quotes with PreparedStatment
In-Reply-To: <4E523050.10000@londonandpartners.com>
References: <1313841345919-4718287.post@n5.nabble.com> <4E5229C8.1000300@londonandpartners.com> <4E523050.10000@londonandpartners.com>
* 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