From 834c395b0dfb18a7b16acc39dee0eb89fcf6a7c2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 19 Oct 2003 19:42:22 +0000 Subject: [PATCH] added empty transaction functions so that db_mysql dont use the adodb ones from the db-class --- phpgwapi/inc/class.db_mysql.inc.php | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/phpgwapi/inc/class.db_mysql.inc.php b/phpgwapi/inc/class.db_mysql.inc.php index be8811a27b..0e21435e53 100644 --- a/phpgwapi/inc/class.db_mysql.inc.php +++ b/phpgwapi/inc/class.db_mysql.inc.php @@ -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); + } } ?>