This commit is contained in:
Justin Bertram 2022-10-13 11:32:26 -05:00
commit d968f0c901
No known key found for this signature in database
GPG Key ID: F41830B875BB8633
1 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ public class PostgresLargeObjectManager {
throw new SQLException("Couldn't access org.postgresql.largeobject.LargeObjectManager", ex);
}
} else {
return ((PGConnection) unwrap(connection)).getLargeObjectAPI().createLO();
return (connection.unwrap(PGConnection.class)).getLargeObjectAPI().createLO();
}
}
@ -80,7 +80,7 @@ public class PostgresLargeObjectManager {
throw new SQLException("Couldn't access org.postgresql.largeobject.LargeObjectManager", ex);
}
} else {
return ((PGConnection) unwrap(connection)).getLargeObjectAPI().open(oid, mode);
return (connection.unwrap(PGConnection.class)).getLargeObjectAPI().open(oid, mode);
}
}
@ -172,7 +172,7 @@ public class PostgresLargeObjectManager {
throw new SQLException("Couldn't access org.postgresql.largeobject.LargeObjectManager", ex);
}
} else {
return ((PGConnection) unwrap(connection)).getLargeObjectAPI();
return (connection.unwrap(PGConnection.class)).getLargeObjectAPI();
}
}