You are here: Re: PDO: test for transaction « PHP SQL « IT news, forums, messages
Re: PDO: test for transaction

Posted by Michael Fesser on 09/14/07 13:02

..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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация