Details
-
New Feature
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Do
-
3.3.2
-
None
Description
It would be preferable if the ResultSet returned by getGeneratedKeys() provided the name of the table columns with ResultSet.getMetaData().getColumnName(int index) rather than insert_id
Otherwise it assumes that we already know the name of the column which is the primary key!
In any case this does not follow the JDBC specifications.
see: Statement.java
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
https://github.com/mariadb-corporation/mariadb-connector-j/blob/2eb246da205da899fd88238d1bc253f9809d9a2e/src/main/java/org/mariadb/jdbc/Statement.java#L963 |
Description |
https://github.com/mariadb-corporation/mariadb-connector-j/blob/2eb246da205da899fd88238d1bc253f9809d9a2e/src/main/java/org/mariadb/jdbc/Statement.java#L963 |
It would be preferable if the ResultSet returned by getGeneratedKeys() provided the name of the table columns with *ResultSet.getMetaData().getColumnName(int index)* rather than *insert_id*
Otherwise it assumes that we already know the name of the column which is the primary key! see: [Statement.java|https://github.com/mariadb-corporation/mariadb-connector-j/blob/2eb246da205da899fd88238d1bc253f9809d9a2e/src/main/java/org/mariadb/jdbc/Statement.java#L963] |
Description |
It would be preferable if the ResultSet returned by getGeneratedKeys() provided the name of the table columns with *ResultSet.getMetaData().getColumnName(int index)* rather than *insert_id*
Otherwise it assumes that we already know the name of the column which is the primary key! see: [Statement.java|https://github.com/mariadb-corporation/mariadb-connector-j/blob/2eb246da205da899fd88238d1bc253f9809d9a2e/src/main/java/org/mariadb/jdbc/Statement.java#L963] |
It would be preferable if the ResultSet returned by getGeneratedKeys() provided the name of the table columns with *ResultSet.getMetaData().getColumnName(int index)* rather than *insert_id*
Otherwise it assumes that we already know the name of the column which is the primary key! In any case this does not follow the JDBC specifications. see: [Statement.java|https://github.com/mariadb-corporation/mariadb-connector-j/blob/2eb246da205da899fd88238d1bc253f9809d9a2e/src/main/java/org/mariadb/jdbc/Statement.java#L963] |
Fix Version/s | N/A [ 22125 ] | |
Resolution | Won't Do [ 10201 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |