Index: org/postgresql/core/v3/SimpleParameterList.java =================================================================== RCS file: /usr/local/cvsroot/pgjdbc/pgjdbc/org/postgresql/core/v3/SimpleParameterList.java,v retrieving revision 1.14 diff -c -r1.14 SimpleParameterList.java *** org/postgresql/core/v3/SimpleParameterList.java 13 Jun 2007 07:25:01 -0000 1.14 --- org/postgresql/core/v3/SimpleParameterList.java 20 Sep 2007 17:26:42 -0000 *************** *** 64,69 **** --- 64,72 ---- if (oid == Oid.UNSPECIFIED && paramTypes[index] != Oid.UNSPECIFIED && value == NULL_OBJECT) return; + if (oid == Oid.UNSPECIFIED) + throw new IllegalArgumentException("Unspecified type comes from here, parameter: " + (index+1)); + paramTypes[index] = oid; }