Commit 17b6baf1 authored by Dave Cramer's avatar Dave Cramer

Doug Fields patch to prevent exception being thrown on zero length arrays

parent fe4e95f6
......@@ -74,7 +74,13 @@ public class Array implements java.sql.Array
Object retVal = null;
ArrayList array = new ArrayList();
if ( rawString != null )
/* Check if the String is also not an empty array
* otherwise there will be an exception thrown below
* in the ResultSet.toX with an empty string.
* -- Doug Fields <dfields-pg-jdbc@pexicom.com> Feb 20, 2002 */
if ( rawString != null && !rawString.equals("{}") )
{
char[] chars = rawString.toCharArray();
StringBuffer sbuf = new StringBuffer();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment