Skip to content

Commit

Permalink
[CONJ-296] test correction using same data
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Sep 8, 2016
1 parent d5c11f8 commit a5eec72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/mariadb/jdbc/DriverTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public static void initClass() throws SQLException {
createTable("unsignedtest", "a int unsigned");
createTable("conj25", "a VARCHAR(1024)");
createTable("batchUpdateException", "i int,PRIMARY KEY (i)");
createTable("batchPrepareUpdateException", "i int,PRIMARY KEY (i)");
createTable("DriverTestt1", "id int not null primary key auto_increment, test varchar(20)");
createTable("DriverTestt2", "id int not null primary key auto_increment, test varchar(20)");
createTable("DriverTestt3", "id int not null primary key auto_increment, test varchar(20)");
Expand Down Expand Up @@ -1136,12 +1137,11 @@ public void batchUpdateException() throws Exception {
}
assertTrue(bue.getCause() instanceof SQLIntegrityConstraintViolationException);
}

}

@Test
public void batchPrepareUpdateException() throws Exception {
PreparedStatement st = sharedConnection.prepareStatement("insert into batchUpdateException values(?)");
PreparedStatement st = sharedConnection.prepareStatement("insert into batchPrepareUpdateException values(?)");
st.setInt(1, 1);
st.addBatch();
st.setInt(1, 2);
Expand Down

0 comments on commit a5eec72

Please sign in to comment.