-
Notifications
You must be signed in to change notification settings - Fork 229
Open
Description
The "connection.rollback()" has execute,But data still updated.
EG :
public void write() {
try (Connection connection = sql2o.beginTransaction()) {
Query q = connection.createQuery(" UPDATE `users` set name = 'alice' where id = 1");
q.setAutoDeriveColumnNames(true);
q.executeUpdate();
// DO SAVE
connection.commit();
// TEST DATA ROLLBACK, The "connection.rollback()" has execute but data still updated.
connection.rollback();
}
}Metadata
Metadata
Assignees
Labels
No labels