Afficher un message
Vieux 14/09/2007, 14h02   #7
Michael Fesser
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PDO: test for transaction

..oO(Pugi!)

>I am using PDO for my MySQL database connection and actions.
>I was wondering if it is possible to test if your are in a
>transaction.
>...
>start transaction
>...
>
>call a function, can I test in this function if I am in the middle of
>a transaction or not ?
>
>...
>end transaction
>...


You could extend the PDO class and implement your own
beginTransaction(), commit() and rollback() methods with some
transaction counter or something like that.

Micha
  Réponse avec citation
 
Page generated in 0,04460 seconds with 9 queries