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