Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

Does rewriteBatchedStatements rewrite into prepared statements or regular ones? (1 reply)

$
0
0
Hi!
I'm working with mysql and java and use rewriteBatchedStatements in some cases.
My question is, when a batched statement is rewritten, does the connector use a new client-side prepared statement for the new statement generated from the batch? Or this new statement just has all the info inside it (instead of using placeholders for params) and is directly executed without preparing it?
If it's a prepared statement, then I have two doubts:
- Does it use ? placeholders for params or it inlines data?
- Is this prepared statement cacheable? Will it be cached if cachePrepStmts=true?
Thanks!

Juan

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>