phpOpenTracker/phpOpenTracker/Database/Driver MSSQL.php,1.6,1.7 Oracle.php,1.6,1.7 PostgreSQL.php,1.6,1.7

Sebastian Bergmann <[email protected]>
Newsgroups gmane.comp.web.phpopentracker.cvs
Message-ID <[email protected]>
Update of /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Database/Driver
In directory sc8-pr-cvs1:/tmp/cvs-serv986/phpOpenTracker/Database/Driver

Modified Files:
	MSSQL.php Oracle.php PostgreSQL.php 
Log Message:
Eliminate if (is_resource(...)) check.

Index: MSSQL.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Database/Driver/MSSQL.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** MSSQL.php	18 Jan 2004 15:55:21 -0000	1.6
--- MSSQL.php	20 Jan 2004 05:03:54 -0000	1.7
***************
*** 63,70 ****
          }
  
!         if (is_resource($this->result)) {
!           @mssql_free_result($this->result);
!         }
! 
          $this->result = @mssql_query($query, $this->connection);
  
--- 63,67 ----
          }
  
!         @mssql_free_result($this->result);
          $this->result = @mssql_query($query, $this->connection);
  

Index: PostgreSQL.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Database/Driver/PostgreSQL.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** PostgreSQL.php	18 Jan 2004 15:55:21 -0000	1.6
--- PostgreSQL.php	20 Jan 2004 05:03:55 -0000	1.7
***************
*** 56,63 ****
          }
  
!         if (is_resource($this->result)) {
!           @pg_freeresult($this->result);
!         }
! 
          $this->result = @pg_exec($this->connection, $query);
  
--- 56,60 ----
          }
  
!         @pg_freeresult($this->result);
          $this->result = @pg_exec($this->connection, $query);
  

Index: Oracle.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Database/Driver/Oracle.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Oracle.php	18 Jan 2004 15:55:21 -0000	1.6
--- Oracle.php	20 Jan 2004 05:03:55 -0000	1.7
***************
*** 60,67 ****
          }
  
!         if (is_resource($this->result)) {
!           @OCIFreeStatement($this->result);
!         }
! 
          $this->result = @OCIParse($this->connection, $query);
  
--- 60,64 ----
          }
  
!         @OCIFreeStatement($this->result);
          $this->result = @OCIParse($this->connection, $query);
  




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.