hi..
i wanted to know the behavior of nested transactions and, while testing, i
noticed a something strange thing.. if i rollback the transaction, changes
are even written to db. is that a known problem with mysql (also 3.23)?
below the code i used :
//not rolled back
Database db = jdo.getDatabase();
db.begin();
Client client = new Client(31, "marsupilami-sensei", 0);
db.create(client);
db.rollback();
i had either another question : if i use nested transactions like this :
Database db = jdo.getDatabase();
Database db2 = jdo.getDatabase();
db.begin();
Client client = new Client(31, "marsupilami-sensei", 0);
db.create(client);
db2.begin();
client.setNom("naru-senpai"); //[1]
db2.commit();
db.commit();
the point [1] is inner the first transaction, right? so there's no really
nested transactions with Castor? am i wrong with theses assumptions?
--
gilles
_________________________________________________________________
T�l�chargez MSN Explorer gratuitement � l'adresse
http://explorer.msn.fr/intl.asp
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev