Forum Moderators: open

Message Too Old, No Replies

MYSQL: Is there an SQL var to say I've Started a Transaction (InnoDB)?

         

jezzer300

8:00 pm on Nov 16, 2005 (gmt 0)

10+ Year Member



The trouble is that if you some how START TRANSACTION twice, the second one does a COMMIT. (Which is very silly, it should error IMO).

Anyhow is there a varaible I can SELECT which will tell me if a TRANSACTION has already been started?

Regards,

Jez.

PHP5 / MySQL InnoDB

arran

1:47 am on Nov 18, 2005 (gmt 0)

10+ Year Member



Hi jezzer,

InnoDB doesn't support nested transactions, however, savepoints [dev.mysql.com] may help you.

arran.

jezzer300

9:56 am on Nov 18, 2005 (gmt 0)

10+ Year Member



thanks.

It was more the worry of a subroutine accidentially doing a start transaciton without causing any error!. Scary.