cvs: /php4/pear/DB mssql.php
| From: | Sterling Hughes | Date: | Tue, 07 Mar 2000 17:51:54 +0000 |
| Subject: | cvs: /php4/pear/DB mssql.php | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-11697@lists.php.net to get a copy of this message | ||
sterling Tue Mar 7 09:51:54 2000 EDT
Modified files:
/php4/pear/DB mssql.php
Log:
Couple thangs... mainly error checking.
Index: php4/pear/DB/mssql.php
diff -u php4/pear/DB/mssql.php:1.1 php4/pear/DB/mssql.php:1.2
--- php4/pear/DB/mssql.php:1.1 Tue Mar 7 09:46:12 2000
+++ php4/pear/DB/mssql.php Tue Mar 7 09:51:23 2000
@@ -17,6 +17,8 @@
// | |
// +----------------------------------------------------------------------+
//
+// $Id: mssql.php,v 1.2 2000/03/07 17:51:23 sterling Exp $
+//
// Database independent query interface definition for PHP's Microsoft SQL Server
// extension.
//
@@ -44,7 +46,7 @@
);
}
- function connect ( $dsn, $persistant=false ) {
+ function connect ( $dsn, $persistent=false ) {
if(is_array($dsn)) {
$dsninfo = &$dsn;
} else {
@@ -67,6 +69,8 @@
}
if ($dsninfo['database']) {
mssql_select_db($dsninfo['database'], $conn);
+ } else {
+ return DB_ERROR;
}
$this->connection = $conn;
return DB_OK;