Index: AbstractJdbc2ResultSet.java
===================================================================
RCS file: /usr/local/cvsroot/pgjdbc/pgjdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java,v
retrieving revision 1.38
diff -u -3 -p -r1.38 AbstractJdbc2ResultSet.java
--- AbstractJdbc2ResultSet.java	16 Jun 2004 05:10:15 -0000	1.38
+++ AbstractJdbc2ResultSet.java	17 Jun 2004 14:49:49 -0000
@@ -957,7 +957,7 @@ public abstract class AbstractJdbc2Resul
 												  )
 	throws SQLException
 	{
-		char[] theData = null;
+		char[] theData = new char[ length ];
 		try
 		{
 			x.read(theData, 0, length);
@@ -971,7 +971,7 @@ public abstract class AbstractJdbc2Resul
 		{
 			throw new PSQLException("postgresql.updateable.ioerror", null, ie);
 		}
-		updateValue(columnIndex, theData);
+		updateValue(columnIndex, new String( theData ) );
 	}
 
 
