I'm reading the source now... - Mailing list pgsql-jdbc

From tony
Subject I'm reading the source now...
Date
Msg-id 1020185707.20869.40.camel@vaio
Whole thread Raw
Responses Re: I'm reading the source now...  (tony <tony@animaproductions.com>)
List 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


pgsql-jdbc by date:

Previous
From: "Jim Bowery"
Date:
Subject: Re: postgres CVS Against j2sdk1.4 Failure
Next
From: tony
Date:
Subject: Re: I'm reading the source now...