* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/Driver.java.in,v 1.31 2003/06/30 16:38:30 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/Driver.java.in,v 1.32 2003/07/21 20:48:31 barry Exp $
*
*-------------------------------------------------------------------------
*/
//The build number should be incremented for every new build
- private static int m_buildNumber = 205;
+ private static int m_buildNumber = 206;
}
if ( chars[i] == '\\' )
//escape character that we need to skip
i++;
- if ( chars[i] == '{' )
+ else if (!insideString && chars[i] == '{' )
{
if ( foundOpen ) // Only supports 1-D arrays for now
throw org.postgresql.Driver.notImplemented();
foundOpen = true;
continue;
}
- if ( chars[i] == '"' )
+ else if (chars[i] == '"')
{
insideString = !insideString;
continue;
}
- if ( (!insideString && chars[i] == ',') || chars[i] == '}' || i == chars.length - 1)
+ else if (!insideString && (chars[i] == ',' || chars[i] == '}') ||
+ i == chars.length - 1)
{
if ( chars[i] != '"' && chars[i] != '}' && chars[i] != ',' )
sbuf.append(chars[i]);