Use result index instead of name.

For whatever reason name is not working. But we only get back one value, so we
can just get it by index (which used SQL's 1-based indexing, whee!).
This commit is contained in:
Michael Bayne
2025-02-21 14:38:02 -08:00
parent 5f4b9f699d
commit f413bac5fc
@@ -244,7 +244,7 @@ public class Table<T>
ResultSet rs = insertStmt.getGeneratedKeys();
Object rawKey = null;
if (rs.next()) {
rawKey = rs.getObject(primaryKeys[0]);
rawKey = rs.getObject(1);
}
@SuppressWarnings("unchecked")
K key = (K)rawKey;