fbsql_autocommit

(PHP 4 >= 4.0.6, PHP 5)

fbsql_autocommit -- Enable or disable autocommit

说明

bool fbsql_autocommit ( resource link_identifier [, bool OnOff] )

fbsql_autocommit() returns the current autocommit status. If the optional OnOff 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().

See also: fbsql_commit() and fbsql_rollback()


add a note add a note User Contributed Notes
daggillies at yahoo dot com
19-Jun-2002 07:26
NOTE: you MUST call this immediately after connecting to the server and selecting a database i.e before issuing any queries. If you do not, it appears that for the duration of your script, auto-commit is set to its default, true value. You will be unable to rollback transactions.

David Gillies
San Jose
Costa Rica