function DB_mysql::autoCommit in Flickr API 5
Enables or disables automatic commits
Parameters
bool $onoff true turns it on, false turns it off:
Return value
int DB_OK on success. A DB_Error object if the driver doesn't support auto-committing transactions.
Overrides DB_common::autoCommit
File
- phpFlickr/
PEAR/ DB/ mysql.php, line 485  
Class
- DB_mysql
 - The methods PEAR DB uses to interact with PHP's mysql extension for interacting with MySQL databases
 
Code
function autoCommit($onoff = false) {
  // XXX if $this->transaction_opcount > 0, we should probably
  // issue a warning here.
  $this->autocommit = $onoff ? true : false;
  return DB_OK;
}