DBZ-1850 Delegate signed/nonsigned conversion to driver

This commit is contained in:
Jiri Pechanec 2020-03-09 13:06:30 +01:00 committed by GitHub
parent 69e87170e3
commit 0248fdde16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -455,7 +455,7 @@ private PostgresType resolveUnknownType(int lookupOid) {
final SqlTypeMapper sqlTypeMapper = new SqlTypeMapper(connection, typeInfo);
try (final PreparedStatement statement = connection.prepareStatement(SQL_NON_ARRAY_TYPE_OID_LOOKUP)) {
statement.setLong(1, lookupOid);
statement.setInt(1, lookupOid);
try (final ResultSet rs = statement.executeQuery()) {
while (rs.next()) {
final int oid = (int) rs.getLong("oid");