postgresql-jdbc.git / summary / log / commit / refs
commit f6602e67fdfeae588cb16d46452c5d2bbec561bc
Author: Dave Cramer <davec@fastcrypt.com>
Date: Mon Sep 26 15:16:05 2011 +0000
patch from Mike Fowler to fix broken builds
org/postgresql/ds/common/PGObjectFactory.java | 4 ++--
org/postgresql/jdbc2/AbstractJdbc2ResultSet.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/org/postgresql/ds/common/PGObjectFactory.java b/org/postgresql/ds/common/PGObjectFactory.java
index 401a927c..9a4765e9 100644
--- a/org/postgresql/ds/common/PGObjectFactory.java
+++ b/org/postgresql/ds/common/PGObjectFactory.java
@@ -3,7 +3,7 @@
* Copyright (c) 2004-2011, PostgreSQL Global Development Group
*
* IDENTIFICATION
-* $PostgreSQL: pgjdbc/org/postgresql/ds/common/PGObjectFactory.java,v 1.8 2011/09/22 12:53:24 davecramer Exp $
+* $PostgreSQL: pgjdbc/org/postgresql/ds/common/PGObjectFactory.java,v 1.9 2011/09/26 12:52:30 davecramer Exp $
*
*-------------------------------------------------------------------------
*/
@@ -116,7 +116,7 @@ public class PGObjectFactory implements ObjectFactory
String binaryTransfer = getProperty(ref, "binaryTransfer");
if (binaryTransfer != null)
- ds.setBinaryTransfer(Boolean.parseBoolean(binaryTransfer));
+ ds.setBinaryTransfer(Boolean.getBoolean(binaryTransfer));
String binaryTransferEnable = getProperty(ref, "binaryTransferEnable");
if (binaryTransferEnable != null)
diff --git a/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java b/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
index d211f4a6..9e78bc92 100644
--- a/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
+++ b/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
@@ -3,7 +3,7 @@
* Copyright (c) 2003-2011, PostgreSQL Global Development Group
*
* IDENTIFICATION
-* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java,v 1.113 2011/09/22 12:53:25 davecramer Exp $
+* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java,v 1.114 2011/09/26 12:52:30 davecramer Exp $
*
*-------------------------------------------------------------------------
*/
@@ -3133,7 +3133,7 @@ public abstract class AbstractJdbc2ResultSet implements BaseResultSet, org.postg
PSQLState.DATA_TYPE_MISMATCH);
}
if (val < minVal || val > maxVal) {
- throw new PSQLException(GT.tr("Bad value for type {0} : {1}", new Object[]{targetType, Long.valueOf(val)}),
+ throw new PSQLException(GT.tr("Bad value for type {0} : {1}", new Object[]{targetType, new Long(val)}),
PSQLState.NUMERIC_VALUE_OUT_OF_RANGE);
}
return val;
[parent: f2c868f6886d]