mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-23 05:41:02 +01:00
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();
|
$this->connect();
|
||||||
/*return $return; */
|
/*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