This closes #4231
This commit is contained in:
commit
d968f0c901
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue