Hello,
I probably found the following bug:
1. perform a "SELECT NOW()"
2. roll back the transaction
3. perform a "SELECT NOW()" again - the same timestamp is returned
Cause/possible fix:
The method org.h2.engine.Session::getTransactionStart is responsible for
providing the timestamp.
Current implementation:
public long getTransactionStart() {
if (transactionStart == 0) {
transactionStart = System.currentTimeMillis();
}
return transactionStart;
}
The only place, where "transactionStart" is resetted is in
"org.h2.engine.Session::commit"
Suggested fix: Reset transactionStart also in rollback
cheers
Roland
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.