phpOpenTracker/phpOpenTracker/DB mssql.php,1.13.4.2,1.13.4.3 mysql.php,1.22.4.2,1.22.4.3 oci8.php,1.13.4.2,1.13.4.3 pgsql.php,1.16.4.2,1.16.4.3

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

Modified Files:
      Tag: phpOpenTracker_1
	mssql.php mysql.php oci8.php pgsql.php 
Log Message:
MFH: Eliminate if (is_resource(...)) check.

Index: oci8.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/DB/Attic/oci8.php,v
retrieving revision 1.13.4.2
retrieving revision 1.13.4.3
diff -C2 -d -r1.13.4.2 -r1.13.4.3
*** oci8.php	18 Jan 2004 15:47:43 -0000	1.13.4.2
--- oci8.php	20 Jan 2004 05:05:03 -0000	1.13.4.3
***************
*** 85,92 ****
      }
  
!     if (isset($this->result) && is_resource($this->result)) {
!       @OCIFreeStatement($this->result);
!     }
! 
      $this->result = @OCIParse($this->connection, $query);
  
--- 85,89 ----
      }
  
!     @OCIFreeStatement($this->result);
      $this->result = @OCIParse($this->connection, $query);
  

Index: mssql.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/DB/Attic/mssql.php,v
retrieving revision 1.13.4.2
retrieving revision 1.13.4.3
diff -C2 -d -r1.13.4.2 -r1.13.4.3
*** mssql.php	18 Jan 2004 15:47:43 -0000	1.13.4.2
--- mssql.php	20 Jan 2004 05:05:03 -0000	1.13.4.3
***************
*** 89,96 ****
      }
  
!     if (isset($this->result) && is_resource($this->result)) {
!       @mssql_free_result($this->result);
!     }
! 
      $this->result = @mssql_query($query, $this->connection);
  
--- 89,93 ----
      }
  
!     @mssql_free_result($this->result);
      $this->result = @mssql_query($query, $this->connection);
  

Index: pgsql.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/DB/Attic/pgsql.php,v
retrieving revision 1.16.4.2
retrieving revision 1.16.4.3
diff -C2 -d -r1.16.4.2 -r1.16.4.3
*** pgsql.php	18 Jan 2004 15:47:43 -0000	1.16.4.2
--- pgsql.php	20 Jan 2004 05:05:03 -0000	1.16.4.3
***************
*** 81,88 ****
      }
  
!     if (isset($this->result) && is_resource($this->result)) {
!       @pg_freeresult($this->result);
!     }
! 
      $this->result = @pg_exec($this->connection, $query);
  
--- 81,85 ----
      }
  
!     @pg_freeresult($this->result);
      $this->result = @pg_exec($this->connection, $query);
  

Index: mysql.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/DB/Attic/mysql.php,v
retrieving revision 1.22.4.2
retrieving revision 1.22.4.3
diff -C2 -d -r1.22.4.2 -r1.22.4.3
*** mysql.php	18 Jan 2004 15:47:43 -0000	1.22.4.2
--- mysql.php	20 Jan 2004 05:05:03 -0000	1.22.4.3
***************
*** 151,158 ****
      }
  
!     if (isset($this->result) && is_resource($this->result)) {
!       @mysql_free_result($this->result);
!     }
! 
      $this->result = @mysql_unbuffered_query($query, $this->connection);
  
--- 151,155 ----
      }
  
!     @mysql_free_result($this->result);
      $this->result = @mysql_unbuffered_query($query, $this->connection);
  




-------------------------------------------------------
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.