Changeset 7755

Show
Ignore:
Timestamp:
07/04/06 03:08:19 (2 years ago)
Author:
saraj
Message:

changes made to get log entry for create tabel queries

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • vtigercrm/trunk/adodb/adodb-datadict.inc.php

    r7685 r7755  
    261261        function ExecuteSQLArray($sql, $continueOnError = true) 
    262262        { 
     263                global $log; 
    263264                $rez = 2; 
    264265                $conn = &$this->connection; 
     
    267268                         
    268269                        if ($this->debug) $conn->debug = true; 
     270                        $log->fatal($line); 
    269271                        $ok = $conn->Execute($line); 
    270272                        $conn->debug = $saved; 
    271273                        if (!$ok) { 
    272                                 if ($this->debug) ADOConnection::outp($conn->ErrorMsg()); 
     274                                $log->fatal("Table Creation Error: Query Failed"); 
     275                                $log->fatal(" "); 
     276                                if ($this->debug)] 
     277                                { 
     278                                        $log->fatal("InstallError: ".$conn->ErrorMsg()); 
     279                                        ADOConnection::outp($conn->ErrorMsg()); 
     280                                }                
    273281                                if (!$continueOnError) return 0; 
    274282                                $rez = 1;