|
From: <dai...@us...> - 2015-02-21 23:36:20
|
Revision: 7167
http://sourceforge.net/p/web-erp/reponame/7167
Author: daintree
Date: 2015-02-21 23:36:17 +0000 (Sat, 21 Feb 2015)
Log Message:
-----------
Simon Rhodes: added global $db; statements to functions in ConnectDB_mysql.inc that had been missed for the transaction functions
Modified Paths:
--------------
trunk/doc/Change.log
trunk/includes/ConnectDB_mysql.inc
Modified: trunk/doc/Change.log
===================================================================
--- trunk/doc/Change.log 2015-02-21 23:23:54 UTC (rev 7166)
+++ trunk/doc/Change.log 2015-02-21 23:36:17 UTC (rev 7167)
@@ -1,5 +1,6 @@
webERP Change Log
+22/2/15 Simon Rhodes: added global $db; statements to functions in ConnectDB_mysql.inc that had been missed for the transaction functions
21/2/15 RChacon: Add headings, page-title and centre-align styles to print.css. Improve page title to use with print.css and add code documentation in GLBalanceSheet.php.
20/2/15 RChacon: Fix heading 2 html-tags inside paragraph html-tags. Add code documentation.
19/2/15 RChacon: Fix AddTextWrap split behaviour (thanks Andrew Galuski). Add code documentation.
Modified: trunk/includes/ConnectDB_mysql.inc
===================================================================
--- trunk/includes/ConnectDB_mysql.inc 2015-02-21 23:23:54 UTC (rev 7166)
+++ trunk/includes/ConnectDB_mysql.inc 2015-02-21 23:36:17 UTC (rev 7167)
@@ -180,7 +180,7 @@
}
function interval( $val, $Inter ){
- global $dbtype;
+ global $DBType;
return "\n".'interval ' . $val . ' '. $Inter."\n";
}
@@ -199,23 +199,28 @@
function DB_Txn_Begin(){
+ global $db;
mysql_query("SET autocommit=0",$db);
mysql_query("START TRANSACTION",$db);
}
function DB_Txn_Commit(){
+ global $db;
mysql_query("COMMIT",$db);
mysql_query("SET autocommit=1",$db);
}
function DB_Txn_Rollback(){
+ global $db;
mysql_query("ROLLBACK",$db);
}
function DB_IgnoreForeignKeys(){
+ global $db;
mysql_query("SET FOREIGN_KEY_CHECKS=0",$db);
}
function DB_ReinstateForeignKeys(){
+ global $db;
mysql_query("SET FOREIGN_KEY_CHECKS=1",$db);
}
|