Bug #34185 No Exception Thrown when getGeneratedKeys() called without RETURN_GENERATED_KEYS
Submitted: 31 Jan 2008 4:21 Modified: 28 Jan 2009 11:31
Reporter: Mark Matthews Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: Mark Matthews

[31 Jan 2008 4: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 2009 22:33] Jess Balint
Released in MySQL Connector/J 5.1.7.
[28 Jan 2009 11: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.