[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. getImportedKeys may still return null when using "SHOW CREATE" implementation (i.e. when catalog is set) |
| Comment by Diego Dupin [ 2020-08-24 ] |