mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-12-21 14:58:51 -05:00
Fix testGetGeneratedKeysSingleLong
This commit is contained in:
parent
05d6c4c4be
commit
268b0500f1
@ -468,6 +468,7 @@ public class QueryMapperTest {
|
||||
return;
|
||||
final QueryMapper qm = ((QueryMapperQmDao)this.qm).getQm();
|
||||
|
||||
try {
|
||||
// auto increment stuff for getGeneratedKeys, how obnoxious are these subtle differences...
|
||||
if (isWrapperFor(qm.getConnection(), classForName("org.sqlite.SQLiteConnection"))) {
|
||||
qm.executeUpdate("CREATE TABLE a_thaoeu_table(\n" +
|
||||
@ -513,6 +514,14 @@ public class QueryMapperTest {
|
||||
final long autoTableNo = qm.insertGetGeneratedKey("INSERT INTO a_thaoeu_table (a_thaoeu_table_val) VALUES (?)", expected * 2);
|
||||
assertEquals(expected, autoTableNo);
|
||||
}
|
||||
} finally {
|
||||
try {
|
||||
qm.executeUpdate("DROP TABLE a_thaoeu_table");
|
||||
qm.executeUpdate("DROP SEQUENCE a_thaoeu_table_seq");
|
||||
} catch(Exception e) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private List<Map<String, String>> getListMap() {
|
||||
|
Loading…
Reference in New Issue
Block a user