Details
-
Task
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.5.5
-
None
Description
Like said in old comment, add "useAffectedRows" property in url connection.
Like MySQL connector :
useAffectedRows
Don't set the CLIENT_FOUND_ROWS flag when connecting to the server (not JDBC-compliant, will break most applications that rely on "found" rows vs. "affected rows" for DML statements), but does cause "correct" update counts from "INSERT ... ON DUPLICATE KEY UPDATE" statements to be returned by the server.
Default: false
Since version: 5.1.7
A note for writing documentation, this option is not compatible with the option "rewriteBatchedStatements" : if the 2 options are set, executeBatch() will not return the number of affected rows as expected.