[CONJ-814] Small possible improvement of getCrossReference, getExportedKeys and getImportedKeys Created: 2020-08-08  Updated: 2020-08-24  Resolved: 2020-08-24

Status: Closed
Project: MariaDB Connector/J
Component/s: metadata
Affects Version/s: None
Fix Version/s: 2.7.0

Type: Task Priority: Minor
Reporter: Lawrin Novitsky Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

All those functions return hardcoded NULL for PK_NAME. While it could be more accurate and return RC.UNIQUE_CONSTRAINT_NAME for that field. If I am not mistaken - that will work for all those methods



 Comments   
Comment by Diego Dupin [ 2020-08-24 ]

Right, javadoc permits returning null, but for most of cases, we can return real name.
This concerns :

getImportedKeys may still return null when using "SHOW CREATE" implementation (i.e. when catalog is set)

Comment by Diego Dupin [ 2020-08-24 ]

see commit https://github.com/mariadb-corporation/mariadb-connector-j/commit/09965c90c480ee245aca24649e2c1bfa58d87de1

Generated at Thu Feb 08 03:18:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.