Bug #34185 No Exception Thrown when getGeneratedKeys() called without RETURN_GENERATED_KEYS
Submitted: 31 Jan 2008 5:21 Modified: 28 Jan 12:31
Reporter: Mark Matthews
Status: Closed
Category:Connector/J Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: Mark Matthews Target Version:

[31 Jan 2008 5:21] Mark Matthews
Description:
When calling getGeneratedKeys() on a statement that hasn't been created with
RETURN_GENERATED_KEYS, no exception is thrown, and batched executions can then return
erroneous values.

How to repeat:
See description.
[21 Jan 23:33] Jess Balint
Released in MySQL Connector/J 5.1.7.
[28 Jan 12:31] Tony Bedford
An entry has been added to the 5.1.7 changelog:

When getGeneratedKeys() was called on a statement that had not been created with
RETURN_GENERATED_KEYS, no exception was thrown, and batched executions then returned
erroneous values.