ARTEMIS-4013 proper cxn unwrap in PostgresLargeObjectManager
This commit is contained in:
parent
f0ecf6bc89
commit
9a44d3e0ea
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue