I'm reading the source now...

Поиск
Список
Период
Сортировка
От tony
Тема I'm reading the source now...
Дата
Msg-id 1020185707.20869.40.camel@vaio
обсуждение исходный текст
Ответы Re: I'm reading the source now...  (tony <tony@animaproductions.com>)
Список 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 по дате отправления:

Предыдущее
От: "Jim Bowery"
Дата:
Сообщение: Re: postgres CVS Against j2sdk1.4 Failure
Следующее
От: tony
Дата:
Сообщение: Re: I'm reading the source now...