Modified:
branches/branch_5_1/connector-j/src/testsuite/regression/StatementRegressionTest.java
Log:
Merge fix.
Modified:
branches/branch_5_1/connector-j/src/testsuite/regression/StatementRegressionTest.java
===================================================================
---
branches/branch_5_1/connector-j/src/testsuite/regression/StatementRegressionTest.java 2006-03-09
20:50:30 UTC (rev 5032)
+++
branches/branch_5_1/connector-j/src/testsuite/regression/StatementRegressionTest.java 2006-03-09
20:53:06 UTC (rev 5033)
@@ -3079,45 +3079,4 @@
}
}
- /**
- * Tests fix for BUG#18041 - Server-side prepared statements
- * don't cause truncation exceptions to be thrown.
- *
- * @throws Exception if the test fails
- */
- public void testBug18041() throws Exception {
- if (versionMeetsMinimum(4, 1)) {
- createTable("testBug18041", "(`a` tinyint(4) NOT NULL,"
- + "`b` char(4) default NULL)");
-
- Properties props = new Properties();
- props.setProperty("jdbcCompliantTruncation", "true");
- props.setProperty("useServerPrepStmts", "true");
-
- Connection truncConn = null;
- PreparedStatement stm = null;
-
- try {
- truncConn = getConnectionWithProps(props);
-
- stm = truncConn
- .prepareStatement("insert into testBug18041 values (?,?)");
- stm.setInt(1, 1000);
- stm.setString(2, "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnn");
- stm.executeUpdate();
- fail("Truncation exception should have been thrown");
- } catch (DataTruncation truncEx) {
- // we expect this
- } finally {
- if (stmt != null) {
- stmt.close();
- }
-
- if (truncConn != null) {
- truncConn.close();
- }
- }
- }
- }
-
}
| Thread |
|---|
| • Connector/J commit: r5033 - branches/branch_5_1/connector-j/src/testsuite/regression | mmatthews | 9 Mar |