[libpostgresql-jdbc-java] 19/22: 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:54 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to tag REL8_4_702
in repository libpostgresql-jdbc-java.

commit 22c9979d766b3f2e88c5d3805a51411e9c752e58
Author: Kris Jurka <books at ejurka.com>
Date:   Sat May 1 20:35:42 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 5db0052..5ddaf9e 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.17 2009/06/20 15:19:40 jurka Exp $
+*   $PostgreSQL: pgjdbc/org/postgresql/ds/common/BaseDataSource.java,v 1.17.2.1 2010/05/01 15:43:48 jurka Exp $
 *
 *-------------------------------------------------------------------------
 */
@@ -469,6 +469,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