[CONJ-764] DatabaseMetaData.getExportedKeys should return "PRIMARY" for PK_NAME column Created: 2020-03-02  Updated: 2022-10-25  Resolved: 2020-03-04

Status: Closed
Project: MariaDB Connector/J
Component/s: metadata
Affects Version/s: 2.5.4
Fix Version/s: 2.6.0

Type: Task Priority: Major
Reporter: Guillaume Grossetie Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: metadata

Issue Links:
Problem/Incident
causes CONJ-1019 DatabaseMetaData.getImportedKeys shou... Closed

 Description   

Since primary keys are named PRIMARY (see MariaDbDatabaseMetaData.getPrimaryKeys), DatabaseMetaData.getExportedKeys should return PRIMARY for PK_NAME column for consistency (instead of "null").



 Comments   
Comment by Diego Dupin [ 2020-03-04 ]

right.
This will be in next version

Comment by Guillaume Grossetie [ 2020-03-04 ]

I've submitted a pull request: https://github.com/mariadb-corporation/mariadb-connector-j/pull/152

Oh nevermind, you've fixed it in the develop branch: https://github.com/mariadb-corporation/mariadb-connector-j/commit/d2e0430d0fdb6cfb256e62ea65a11dd6fd2664c4

Thanks

Comment by Diego Dupin [ 2020-03-04 ]

ouch, i've just seen that. i'll still merged it, since there is 2 aditional tests !

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