I'm reading the source now...

From: tony <tony(at)animaproductions(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: I'm reading the source now...
Date: 2002-04-30 16:55:07
Message-ID: 1020185707.20869.40.camel@vaio
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hello,

Trying to figure out how to integrate
Statement.setEscapeProcessing(true)

into a JSP it came upon me that to make the JSP RDBMS independant this
code should be in the driver. So I downloaded the source and came up
with

public boolean execute(String sql) throws SQLException
{
if (escapeProcessing)
sql = escapeSQL(sql);

in statement. I'm using preparedStatement which if one reads Suns doc
correctly escape characters "automagically".

Can I just use escapeSQL in my query???

Cheers

Tony Grant

--
RedHat Linux on Sony Vaio C1XD/S
http://www.animaproductions.com/linux2.html
Macromedia UltraDev with PostgreSQL
http://www.animaproductions.com/ultra.html

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message tony 2002-04-30 17:02:18 Re: I'm reading the source now...
Previous Message Jim Bowery 2002-04-30 01:24:36 Re: postgres CVS Against j2sdk1.4 Failure