Re: how to Escape single quotes with PreparedStatment - Mailing list pgsql-jdbc

From Chris Wareham
Subject Re: how to Escape single quotes with PreparedStatment
Date
Msg-id 4E523050.10000@londonandpartners.com
Whole thread Raw
In response to Re: how to Escape single quotes with PreparedStatment  (Chris Wareham <cwareham@londonandpartners.com>)
List pgsql-jdbc
On 22/08/11 11:04, Chris Wareham wrote:
>
> stmt = con.prepareStatement(query);
>

Should of course be:

stmt = con.prepareStatement(query.toString());

Chris

pgsql-jdbc by date:

Previous
From: JavaNoobie
Date:
Subject: Re: how to Escape single quotes with PreparedStatment
Next
From: Chris Wareham
Date:
Subject: Re: how to Escape single quotes with PreparedStatment