1
package org.mariadb.jdbc;
3
import org.mariadb.jdbc.internal.common.queryresults.*;
4
import org.mariadb.jdbc.internal.mysql.MySQLProtocol;
8
public class MySQLGeneratedKeysResultSet extends MySQLResultSet {
9
public MySQLGeneratedKeysResultSet(QueryResult dqr, Statement statement, MySQLProtocol protocol) {
10
super(dqr,statement, protocol);
13
public int findColumn(String columnLabel) throws SQLException {
15
There is only a single column returned in generated keys (autoincrement value),
16
and we do not know the real name of the primary key, because it is not returned by the protocol
17
(and because we're too lazy to check in information schema, this is expensive operation).
18
At the moment the solution is to map just any name to index 1.