cvs: php4 /pear/DB mssql.php
| From: | Thomas V.V.Cox | Date: | Thu, 27 Dec 2001 12:06:50 +0000 |
| Subject: | cvs: php4 /pear/DB mssql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1710@lists.php.net to get a copy of this message | ||
cox Thu Dec 27 07:06:50 2001 EDT
Modified files:
/php4/pear/DB mssql.php
Log:
mssql_get_last_message() has been reportered that always is returning
data, so don't use it as a test for errors in fetchInto
Index: php4/pear/DB/mssql.php
diff -u php4/pear/DB/mssql.php:1.37 php4/pear/DB/mssql.php:1.38
--- php4/pear/DB/mssql.php:1.37 Tue Dec 11 10:31:15 2001
+++ php4/pear/DB/mssql.php Thu Dec 27 07:06:50 2001
@@ -16,7 +16,7 @@
// | Authors: Sterling Hughes <sterling@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: mssql.php,v 1.37 2001/12/11 15:31:15 sebastian Exp $
+// $Id: mssql.php,v 1.38 2001/12/27 12:06:50 cox Exp $
//
// Database independent query interface definition for PHP's Microsoft SQL Server
// extension.
@@ -158,11 +158,13 @@
$ar = @mssql_fetch_row($result);
}
if (!$ar) {
+ /* This throws informative error messages,
+ don't use it for now
if ($msg = mssql_get_last_message()) {
return $this->raiseError($msg);
- } else {
- return null;
}
+ */
+ return null;
}
return DB_OK;
}