Re: cannot be cast to class com.mysql.cj.jdbc.ClientPreparedStatement
Posted by: Filipe Silva
Date: April 13, 2023 04:50AM

It's a bug.

Setting rewriteBatchedStatements=true with multi-host connections (jdbc:mysql:replication, for example) it's what's causing it. Rewriting batched statements is working with single host connections.

Can you please file a bug in MySQL Bugs? Please include a description of the problem, a copy of the stack trace (it's enough to put there just the "Caused by" and the next 4 lines) and a link to this thread.

Thanks,

Options: ReplyQuote




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.