forked from extern/egroupware
added empty transaction functions so that db_mysql dont use the adodb ones from the db-class
This commit is contained in:
parent
32fa6bc9d0
commit
834c395b0d
@ -494,5 +494,40 @@
|
||||
$this->connect();
|
||||
/*return $return; */
|
||||
}
|
||||
|
||||
//some empty functions, so that adodb can be in the normal db-class
|
||||
function transaction_begin()
|
||||
{
|
||||
return True;
|
||||
}
|
||||
|
||||
/**
|
||||
* Complete the transaction
|
||||
*
|
||||
* @return bool True if sucessful, False if fails
|
||||
*/
|
||||
function transaction_commit()
|
||||
{
|
||||
return True;
|
||||
}
|
||||
|
||||
/**
|
||||
* Rollback the current transaction
|
||||
*
|
||||
* @return bool True if sucessful, False if fails
|
||||
*/
|
||||
function transaction_abort()
|
||||
{
|
||||
return True;
|
||||
}
|
||||
|
||||
function db_addslashes($str)
|
||||
{
|
||||
if (!isset($str) || $str == '')
|
||||
{
|
||||
return '';
|
||||
}
|
||||
return addslashes($str);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user