Bug #18311 Updated: Log_sql call obsolute function
| From: | cox@php.net | Date: | Fri, 12 Jul 2002 13:59:17 +0000 |
| Subject: | Bug #18311 Updated: Log_sql call obsolute function | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-7686@lists.php.net to get a copy of this message | ||
ID: 18311
Updated by: cox@php.net
Reported By: koyama@hoge.org
Status: Open
Bug Type: PEAR related
Operating System: FreeBSD
PHP Version: 4CVS-2002-07-12
New Comment:
This patch is right. DB_Warning was dropped since the 1.3 release.
Tomas V.V.Cox
Previous Comments:
------------------------------------------------------------------------
[2002-07-12 08:29:12] koyama@hoge.org
Log_sql class can't work, because call DB::isWarning() in open()
method. I think DB::isWarning() is obsolute now.
patch:
RCS file: /repository/pear/Log/Log/sql.php,v
retrieving revision 1.4
diff -u -r1.4 sql.php
--- sql.php 29 Apr 2002 05:18:45 -0000 1.4
+++ sql.php 12 Jul 2002 12:28:32 -0000
@@ -73,7 +73,7 @@
{
if (!$this->_opened) {
$this->db = &DB::connect($this->dsn, true);
- if (DB::isError($this->db) || DB::isWarning($this->db)) {
+ if (DB::isError($this->db)) {
return false;
}
$this->_opened = true;
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18311&edit=1