[Vtigercrm-commits] [vtiger-commits] r7755 - /vtigercrm/trunk/adodb/adodb-datadict.inc.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Jul 4 05:08:23 EDT 2006


Author: saraj
Date: Tue Jul  4 03:08:19 2006
New Revision: 7755

Log:
changes made to get log entry for create tabel queries

Modified:
    vtigercrm/trunk/adodb/adodb-datadict.inc.php

Modified: vtigercrm/trunk/adodb/adodb-datadict.inc.php
==============================================================================
--- vtigercrm/trunk/adodb/adodb-datadict.inc.php (original)
+++ vtigercrm/trunk/adodb/adodb-datadict.inc.php Tue Jul  4 03:08:19 2006
@@ -260,16 +260,24 @@
 	// Executes the sql array returned by GetTableSQL and GetIndexSQL
 	function ExecuteSQLArray($sql, $continueOnError = true)
 	{
+		global $log;
 		$rez = 2;
 		$conn = &$this->connection;
 		$saved = $conn->debug;
 		foreach($sql as $line) {
 			
 			if ($this->debug) $conn->debug = true;
+			$log->fatal($line);
 			$ok = $conn->Execute($line);
 			$conn->debug = $saved;
 			if (!$ok) {
-				if ($this->debug) ADOConnection::outp($conn->ErrorMsg());
+				$log->fatal("Table Creation Error: Query Failed");
+				$log->fatal(" ");
+				if ($this->debug)]
+			       	{
+					$log->fatal("InstallError: ".$conn->ErrorMsg());
+					ADOConnection::outp($conn->ErrorMsg());
+				}		
 				if (!$continueOnError) return 0;
 				$rez = 1;
 			}





More information about the vtigercrm-commits mailing list