Modified:
branches/branch_5_0/connector-j/src/com/mysql/jdbc/CallableStatement.java
Log:
Missed a merge that caused an NPE when a procedure with no parameters was called.
Modified: branches/branch_5_0/connector-j/src/com/mysql/jdbc/CallableStatement.java
===================================================================
--- branches/branch_5_0/connector-j/src/com/mysql/jdbc/CallableStatement.java 2006-04-03 18:23:06 UTC (rev 5125)
+++ branches/branch_5_0/connector-j/src/com/mysql/jdbc/CallableStatement.java 2006-04-03 18:24:43 UTC (rev 5126)
@@ -232,6 +232,10 @@
}
public int getParameterCount() throws SQLException {
+ if (this.parameterList == null) {
+ return 0;
+ }
+
return this.parameterList.size();
}
| Thread |
|---|
| • Connector/J commit: r5126 - branches/branch_5_0/connector-j/src/com/mysql/jdbc | mmatthews | 3 Apr |