[libpostgresql-jdbc-java] 08/09: Fix up the previous patch to ensure datasource parameters are set properly. We must close the ObjectOutputStream to flush the data to the byte array.
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:20:48 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to tag REL8_3_606
in repository libpostgresql-jdbc-java.
commit 93c095e72a6c5f1d9d86bae7d64589134367e1b2
Author: Kris Jurka <books at ejurka.com>
Date: Sat May 1 20:35:46 2010 +0000
Fix up the previous patch to ensure datasource parameters are set
properly. We must close the ObjectOutputStream to flush the data
to the byte array.
---
org/postgresql/ds/common/BaseDataSource.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/org/postgresql/ds/common/BaseDataSource.java b/org/postgresql/ds/common/BaseDataSource.java
index e82a7e9..35270b1 100644
--- a/org/postgresql/ds/common/BaseDataSource.java
+++ b/org/postgresql/ds/common/BaseDataSource.java
@@ -3,7 +3,7 @@
* Copyright (c) 2004-2008, PostgreSQL Global Development Group
*
* IDENTIFICATION
-* $PostgreSQL: pgjdbc/org/postgresql/ds/common/BaseDataSource.java,v 1.10.2.1 2008/04/13 15:49:24 jurka Exp $
+* $PostgreSQL: pgjdbc/org/postgresql/ds/common/BaseDataSource.java,v 1.10.2.2 2010/05/01 15:43:54 jurka Exp $
*
*-------------------------------------------------------------------------
*/
@@ -396,6 +396,7 @@ public abstract class BaseDataSource implements Referenceable
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(baos);
source.writeBaseObject(oos);
+ oos.close();
ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
ObjectInputStream ois = new ObjectInputStream(bais);
readBaseObject(ois);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git
More information about the pkg-java-commits
mailing list