summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/org/postgresql/util/PGbytea.java
diff options
context:
space:
mode:
authorBarry Lind <barry@xythos.com>2003-05-29 04:48:33 +0000
committerBarry Lind <barry@xythos.com>2003-05-29 04:48:33 +0000
commitece84bf8194566ba02b51299aa7ab256af2ec8c1 (patch)
treee1af729be93c5111daffd3c05925200cc3ab03b2 /src/interfaces/jdbc/org/postgresql/util/PGbytea.java
parentfb630cc49f06d79cf915035fc28e23814290390d (diff)
downloadpostgresql-ece84bf8194566ba02b51299aa7ab256af2ec8c1.tar.gz
Applied patch from Fernando Nasser to improve buffer sizes to avoid unnecessary resizing.
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/util/PGbytea.java')
-rw-r--r--src/interfaces/jdbc/org/postgresql/util/PGbytea.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/util/PGbytea.java b/src/interfaces/jdbc/org/postgresql/util/PGbytea.java
index d754cbfd68..31eb0c4d94 100644
--- a/src/interfaces/jdbc/org/postgresql/util/PGbytea.java
+++ b/src/interfaces/jdbc/org/postgresql/util/PGbytea.java
@@ -6,7 +6,7 @@
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/util/Attic/PGbytea.java,v 1.7 2003/03/07 18:39:46 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/util/Attic/PGbytea.java,v 1.8 2003/05/29 04:48:33 barry Exp $
*
*-------------------------------------------------------------------------
*/
@@ -68,7 +68,7 @@ public class PGbytea
{
if (p_buf == null)
return null;
- StringBuffer l_strbuf = new StringBuffer(p_buf.length);
+ StringBuffer l_strbuf = new StringBuffer(2 * p_buf.length);
for (int i = 0; i < p_buf.length; i++)
{
int l_int = (int)p_buf[i];