fbsql_autocommit
(PHP 4 >= 4.0.6, PHP 5)
fbsql_autocommit — Enable or disable autocommit
Описание
Returns the current autocommit status.
Параметри
- link_identifier
-
Идентификатор на връзката към FrontBase, върнат от fbsql_connect() или fbsql_pconnect().
Ако е незадължителна и не е указана, функцията ще се опита да намери отворена връзка към сървъра FrontBase и ако не намери такава ще се опита да създаде нова, както когато fbsql_connect() е била извикана без аргументи.
- OnOff
-
If this optional parameter is given the auto commit status will be changed.
With OnOff set to TRUE each statement will be committed automatically, if no errors was found.
With OnOff set to FALSE the user must commit or rollback the transaction using either fbsql_commit() or fbsql_rollback().
Връщани стойности
Returns the current autocommit status, as a boolean.
Вж. също
- fbsql_commit() - Commits a transaction to the database
- fbsql_rollback() - Rollback a transaction to the database
