This one time, at band camp, yangj said:

y >
y >  Inside a transaction ,if error ocurred before commit() ,execute rollback()
y >will be right.
y >  But if error occured in excute commit(),  execut rollback() will product
y >error.
y >  The error reason seems when excute commit error happened, rise out a
y >closing connection event .So when exceute rollback error happened.
y >  I think this is a bug .Do anyone can solve this problem?
y >   source:
y >   try {
y >                  db.begin();
y >                  ...Do something
y >                  cat.debug("Begin commit");
y >                  db.commit();
y >                  cat.debug("End commit");
y >              }catch (Exception ex) {
y >                  db.rollback();
y >                  cat.debug("Error transaction");
y >                  throw ex;
y >              }

Yangj,

What database/driver name and version  are you using?

--

perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to