cvs: php4 /pear/DB mysql.php
| From: | Jan Lehnardt | Date: | Tue, 12 Feb 2002 18:33:27 +0000 |
| Subject: | cvs: php4 /pear/DB mysql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2412@lists.php.net to get a copy of this message | ||
jan Tue Feb 12 13:33:27 2002 EDT
Modified files:
/php4/pear/DB mysql.php
Log:
- added default case for mysql_select_db error handling. It throws a
- DB_ERROR (unknown error) in the default case.
Index: php4/pear/DB/mysql.php
diff -u php4/pear/DB/mysql.php:1.87 php4/pear/DB/mysql.php:1.88
--- php4/pear/DB/mysql.php:1.87 Tue Feb 12 13:29:27 2002
+++ php4/pear/DB/mysql.php Tue Feb 12 13:33:26 2002
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: mysql.php,v 1.87 2002/02/12 18:29:27 jan Exp $
+// $Id: mysql.php,v 1.88 2002/02/12 18:33:26 jan Exp $
//
// Database independent query interface definition for PHP's MySQL
// extension.
@@ -151,7 +151,11 @@
case 1044:
return $this->raiseError(DB_ERROR_ACCESS_VIOLATION, null, null,
null, mysql_error($conn));
- break;
+ break;
+ default:
+ return $this->raiseError(DB_ERROR, null, null,
+ null, mysql_error($conn));
+ break;
}
}