Only release the connection if we didn't report it as failed.
This commit is contained in:
@@ -570,7 +570,9 @@ public class PersistenceContext
|
|||||||
}
|
}
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
_conprov.releaseConnection(_ident, isReadOnly, conn);
|
if (conn != null) {
|
||||||
|
_conprov.releaseConnection(_ident, isReadOnly, conn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user