Thread: New code for JDBC driver

New code for JDBC driver

From
"Arsalan Zaidi"
Date:
No response for my query since yesterday.

I've changed the code in Connection.escapeSQL() to look for semicolons
outside '' and ""'s.

It's not been well tested, but it seems to work. Someone might want to add
it to the source tree, or to their own local versions if they wish.

--Arsalan

Re: New code for JDBC driver

From
Bruce Momjian
Date:
Can you send a context diff against the original file?  Thanks.

> No response for my query since yesterday.
> 
> I've changed the code in Connection.escapeSQL() to look for semicolons
> outside '' and ""'s.
> 
> It's not been well tested, but it seems to work. Someone might want to add
> it to the source tree, or to their own local versions if they wish.
> 
> --Arsalan

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://www.postgresql.org/search.mpl

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


Re: New code for JDBC driver

From
Peter Eisentraut
Date:
Arsalan Zaidi writes:

> I've changed the code in Connection.escapeSQL() to look for semicolons
> outside '' and ""'s.

Why?  AFAICT, your code doesn't have any side effects and it also doesn't
have anything to do with what EscapeSQL is supposed to do.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter