phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] api/db class.db_pgsql.php, 1.1.1.1.2.2, 1.1.1.1.2.3


From: Joseph Engo <address@hidden>
Subject: [Phpgroupware-cvs] api/db class.db_pgsql.php, 1.1.1.1.2.2, 1.1.1.1.2.3
Date: Tue, 28 Oct 2003 05:58:44 +0000

Update of /cvsroot/phpgroupware/api/db
In directory subversions:/tmp/cvs-serv1350/api/db

Modified Files:
      Tag: proposal-branch
        class.db_pgsql.php 
Log Message:
Cleaned up the error reporting a little


Index: class.db_pgsql.php
===================================================================
RCS file: /cvsroot/phpgroupware/api/db/class.db_pgsql.php,v
retrieving revision 1.1.1.1.2.2
retrieving revision 1.1.1.1.2.3
diff -C2 -d -r1.1.1.1.2.2 -r1.1.1.1.2.3
*** class.db_pgsql.php  27 Oct 2003 08:54:09 -0000      1.1.1.1.2.2
--- class.db_pgsql.php  28 Oct 2003 05:58:41 -0000      1.1.1.1.2.3
***************
*** 490,494 ****
                function halt($msg, $line = '', $file = '')
                {
!                       if($this->Halt_On_Error == 'no')
                        {
                                return;
--- 490,494 ----
                function halt($msg, $line = '', $file = '')
                {
!                       if ($this->Halt_On_Error == 'no')
                        {
                                return;
***************
*** 498,509 ****
                        $this->transaction_abort();
  
!                       if($this->Halt_On_Error == 'yes')
                        {
                                $GLOBALS['msgbox']->add('Database error: 
',$line,$file, 'debug', $msg);
!                               if($this->Errno != '0' && $this->Error != '()')
!                               {
!                                       $GLOBALS['msgbox']->add('PostgreSQL 
Error',$line,$file, 'fataldebug', 
array('No'=>$this->Errno,'Text'=>$this->Error));
!                               }
!                               //$GLOBALS['msgbox']->add('Session 
halted.',$line,$file, 'fatal');
                                exit;
                        }
--- 498,512 ----
                        $this->transaction_abort();
  
!                       if ($this->Errno != '0' && $this->Error != '()')
!                       {
!                               $GLOBALS['msgbox']->add(sprintf('PostgreSQL 
Error (%s): %s',$this->Errno, $this->Error),$line,$file,'fataldebug',$msg);
!                       }
!                       else
                        {
                                $GLOBALS['msgbox']->add('Database error: 
',$line,$file, 'debug', $msg);
!                       }
! 
!                       if ($this->Halt_On_Error == 'yes')
!                       {
                                exit;
                        }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]