ARTEMIS-4013 proper cxn unwrap in PostgresLargeObjectManager

This commit is contained in:
Johannes Edmeier 2022-09-23 16:21:10 +02:00 committed by Justin Bertram
parent f0ecf6bc89
commit 9a44d3e0ea
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); throw new SQLException("Couldn't access org.postgresql.largeobject.LargeObjectManager", ex);
} }
} else { } 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); throw new SQLException("Couldn't access org.postgresql.largeobject.LargeObjectManager", ex);
} }
} else { } 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); throw new SQLException("Couldn't access org.postgresql.largeobject.LargeObjectManager", ex);
} }
} else { } else {
return ((PGConnection) unwrap(connection)).getLargeObjectAPI(); return (connection.unwrap(PGConnection.class)).getLargeObjectAPI();
} }
} }