Skip to Content.
Sympa Menu

internetworkers - Re: [internetworkers] mySql JDBC driver not properly escaping characters

internetworkers AT lists.ibiblio.org

Subject: Internetworkers: http://www.ibiblio.org/internetworkers/

List archive

Chronological Thread  
  • From: Kevin Sonney <ksonney AT gmail.com>
  • To: "Internetworkers: http://www.ibiblio.org/internetworkers/" <internetworkers AT lists.ibiblio.org>
  • Subject: Re: [internetworkers] mySql JDBC driver not properly escaping characters
  • Date: Fri, 20 Aug 2004 10:21:10 -0400

On Fri, 20 Aug 2004 10:01:50 -0400, Tony Spencer <tony AT tonyspencer.com> wrote:
> Isn't it the duty of my JDBC driver to handle proper escaping of characters
> before performing an insert into my mySQl database?

Not if you are building the query/insert as a string and using a
standard Statement object. Using a preparedStatement instead will
allow you to do what you want easily.

--
-- Kevin Sonney
-- ksonney AT gmail.com




Archive powered by MHonArc 2.6.24.

Top of Page