added empty transaction functions so that db_mysql dont use the adodb ones from the db-class

This commit is contained in:
Ralf Becker 2003-10-19 19:42:22 +00:00
parent 32fa6bc9d0
commit 834c395b0d

View File

@ -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);
}
}
?>