Re: Bug in 3.1.6 ?
Posted by: Mark Matthews
Date: January 11, 2005 10:26PM

R Lenard wrote:
> Mark Matthews wrote:
> > If you know that you won't be gaining
> anything
> > from the use of server-side prepared
> statements,
> > or if you know you have statements that
> aren't
> > supported (the list is at
> >
> http://dev.mysql.com/doc/mysql/en/C_API_Prepared_s
>
> > tatements.html , I'll add that to the
> Connector/J
> > docs so that it's easier to find), then just
> turn
> > off server-side prepared statements with the
> > 'useServerPrepStmts=false' flag.
>
> Then there's a bug ??
>
> From that URL ..
>
> The following statements can be used as prepared
> statements: CREATE TABLE, DELETE, DO, INSERT,
> REPLACE, SELECT, SET, UPDATE, and most SHOW,
> statements. Other statements are not yet
> supported.
>
> My example is a REPLACE.

Yes, but the error message is from the server, and the JDBC driver does nothing but pass your query on as a string during the prepare phase.

So, it's not a bug with the driver, it's a shortcoming of the version of the server you're running. I just tried this with the latest released version of MySQL-4.1 (4.1.8) and it seems to work. What version of the server are you using?

Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools
Oracle
http://www.mysql.com/products/enterprise/monitor.html

Options: ReplyQuote


Subject
Written By
Posted
January 11, 2005 08:52PM
January 11, 2005 09:55PM
January 11, 2005 10:03PM
Re: Bug in 3.1.6 ?
January 11, 2005 10:26PM
January 11, 2005 10:28PM
January 11, 2005 11:31PM
January 11, 2005 10:06PM
January 11, 2005 10:13PM
January 11, 2005 10:17PM
January 11, 2005 10:28PM
January 11, 2005 10:30PM
January 11, 2005 10:36PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.