Index: src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java =================================================================== RCS file: /projects/cvsroot/pgsql-server/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java,v retrieving revision 1.6 diff -c -r1.6 AbstractJdbc1ResultSet.java *** src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java 2002/09/06 21:23:06 1.6 --- src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java 2002/10/11 23:02:46 *************** *** 646,651 **** --- 646,655 ---- if (wasNullFlag) return null; + // if we don't have at least 2 characters it can't be money. + if (s.length() < 2) + return s; + // Handle Money if (s.charAt(0) == '(') { *************** *** 654,659 **** --- 658,667 ---- if (s.charAt(0) == '$') { s = s.substring(1); + } + else if (s.charAt(0) == '-' && s.charAt(1) == '$') + { + s = "-" + s.substring(2); } return s;