Bug #113600 Contribution: Fix join condition for retrieval of imported primary keys
Submitted: 9 Jan 20:48 Modified: 9 Apr 20:05
Reporter: OCA Admin (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:8.x OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution

[9 Jan 20:48] OCA Admin
Description:
This bug tracks a contribution by Henning Pöttker (Github user: hpoettker) as described in http://github.com/mysql/mysql-connector-j/pull/101

How to repeat:
See description

Suggested fix:
See contribution code attached
[9 Jan 20:48] OCA Admin
Contribution submitted via Github - Fix join condition for retrieval of imported primary keys 
(*) Contribution by Henning Pöttker (Github hpoettker, mysql-connector-j/pull/101#issuecomment-1879867374): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: git_patch_1667488933.txt (text/plain), 7.28 KiB.

[10 Jan 5:55] MySQL Verification Team
Hello Henning,

Thank you for the report and contribution.

regards,
Umesh
[5 Mar 22:01] Filipe Silva
Duplicates/fixes Bug#108088.
[9 Apr 20:05] Daniel So
Posted by developer:
 
Added the following entry to the Connector/J 8.4.0 changelog: 

"DatabaseMetaData.getImportedKeys() returned imported primary keys from some other databases. It was due to a wrong JOIN clause in the SQL statement for retrieving the imported primary keys, which has now been corrected. Thanks to Henning Pöttker for contributing to this fix. "