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 CPU Architecture:Any

[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.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
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.