summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/org/postgresql/util/PGbytea.java
diff options
context:
space:
mode:
authorBarry Lind <barry@xythos.com>2002-08-16 17:51:38 +0000
committerBarry Lind <barry@xythos.com>2002-08-16 17:51:38 +0000
commit875364e5ffd1027d16ac36f188cd3c5acdf3067c (patch)
tree967b415d03b32ff4bf9606b17aeaf01d65d65bab /src/interfaces/jdbc/org/postgresql/util/PGbytea.java
parentab0f98518c87ee5303b29d893e57600f53428245 (diff)
downloadpostgresql-875364e5ffd1027d16ac36f188cd3c5acdf3067c.tar.gz
Performance tweaks to StringBuffer suggested by hhaag@gmx.de
Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/util/PGbytea.java
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 93e8afae5a..a6d1c011bf 100644
--- a/src/interfaces/jdbc/org/postgresql/util/PGbytea.java
+++ b/src/interfaces/jdbc/org/postgresql/util/PGbytea.java
@@ -5,7 +5,7 @@ import java.sql.*;
/*
* Converts to and from the postgresql bytea datatype used by the backend.
*
- * $Id: PGbytea.java,v 1.4 2002/01/05 22:26:23 barry Exp $
+ * $Id: PGbytea.java,v 1.5 2002/08/16 17:51:38 barry Exp $
*/
public class PGbytea
@@ -62,7 +62,7 @@ public class PGbytea
{
if (p_buf == null)
return null;
- StringBuffer l_strbuf = new StringBuffer();
+ StringBuffer l_strbuf = new StringBuffer(p_buf.length);
for (int i = 0; i < p_buf.length; i++)
{
int l_int = (int)p_buf[i];