tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Layman <randy.lay...@aswethink.com>
Subject RE: jdbc
Date Mon, 16 Jul 2001 13:54:38 GMT

	You can also use the connection's meta data - there is a method to
get the escape character (and I believe another method to get the list of
characters that need escaping).

	Randy

> -----Original Message-----
> From: William Kaufman [mailto:WKaufman@viquity.com]
> Sent: Monday, July 16, 2001 10:13 AM
> To: 'tomcat-user@jakarta.apache.org'
> Subject: RE: jdbc
> 
> 
> (You know, this has nothing at all to do with Tomcat, or even 
> servlets,...)
> 
> Use a PreparedStatement, and call setString().
> 
>                                         -- Bill K. 
> 
> > -----Original Message-----
> > From: Andrea Mari [mailto:mari.and@tin.it]
> > Sent: Monday, July 16, 2001 6:58 AM
> > To: tomcat-user@jakarta.apache.org
> > Subject: jdbc
> > 
> > 
> > Hi,
> > 
> > how can I escape automatically the query strinng when it 
> > contains invalid
> > character as ' or \ ?
> > 
> > I know that in php there is a directive that do it.
> > 
> > Can you help me?
> > 
> > Andrea
> > 
> 

Mime
View raw message