phpOpenTracker/phpOpenTracker/DB mssql.php,1.13.4.1.2.1,1.13.4.1.2.2 mysql.php,1.22.4.1.2.1,1.22.4.1.2.2 oci8.php,1.13.4.1.2.1,1.13.4.1.2.2 pgsql.php,1.16.4.1.2.1,1.16.4.1.2.2
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-serv1381/phpOpenTracker/DB
Modified Files:
Tag: phpOpenTracker_1_4
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.1.2.1
retrieving revision 1.13.4.1.2.2
diff -C2 -d -r1.13.4.1.2.1 -r1.13.4.1.2.2
*** oci8.php 18 Jan 2004 15:46:55 -0000 1.13.4.1.2.1
--- oci8.php 20 Jan 2004 05:06:07 -0000 1.13.4.1.2.2
***************
*** 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.1.2.1
retrieving revision 1.13.4.1.2.2
diff -C2 -d -r1.13.4.1.2.1 -r1.13.4.1.2.2
*** mssql.php 18 Jan 2004 15:46:55 -0000 1.13.4.1.2.1
--- mssql.php 20 Jan 2004 05:06:07 -0000 1.13.4.1.2.2
***************
*** 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.1.2.1
retrieving revision 1.16.4.1.2.2
diff -C2 -d -r1.16.4.1.2.1 -r1.16.4.1.2.2
*** pgsql.php 18 Jan 2004 15:46:55 -0000 1.16.4.1.2.1
--- pgsql.php 20 Jan 2004 05:06:07 -0000 1.16.4.1.2.2
***************
*** 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.1.2.1
retrieving revision 1.22.4.1.2.2
diff -C2 -d -r1.22.4.1.2.1 -r1.22.4.1.2.2
*** mysql.php 18 Jan 2004 15:46:55 -0000 1.22.4.1.2.1
--- mysql.php 20 Jan 2004 05:06:07 -0000 1.22.4.1.2.2
***************
*** 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