You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2016/09/10 16:32:16 UTC
svn commit: r1760195 -
/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java
Author: fschumacher
Date: Sat Sep 10 16:32:15 2016
New Revision: 1760195
URL: http://svn.apache.org/viewvc?rev=1760195&view=rev
Log:
Don't loose original exception.
Modified:
jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java
Modified: jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java?rev=1760195&r1=1760194&r2=1760195&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java (original)
+++ jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java Sat Sep 10 16:32:15 2016
@@ -350,7 +350,7 @@ public abstract class AbstractJDBCTestEl
outputs[i]=java.sql.Types.NULL; // can't have an output parameter type null
}
} catch (NullPointerException e) { // thrown by Derby JDBC (at least) if there are no "?" markers in statement
- throw new SQLException("Could not set argument no: "+(i+1)+" - missing parameter marker?");
+ throw new SQLException("Could not set argument no: "+(i+1)+" - missing parameter marker?", e);
}
}
return outputs;
@@ -419,7 +419,7 @@ public abstract class AbstractJDBCTestEl
try {
entry = Integer.decode(jdbcType);
} catch (NumberFormatException e) {
- throw new SQLException("Invalid data type: "+jdbcType);
+ throw new SQLException("Invalid data type: "+jdbcType, e);
}
}
return (entry).intValue();