cvs: php4 /pear/DB mssql.php
| From: | Thomas V.V.Cox | Date: | Thu, 06 Dec 2001 01:42:16 +0000 |
| Subject: | cvs: php4 /pear/DB mssql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1482@lists.php.net to get a copy of this message | ||
cox Wed Dec 5 20:42:16 2001 EDT
Modified files:
/php4/pear/DB mssql.php
Log:
modified the test for the MS SQL type extensions support
Index: php4/pear/DB/mssql.php
diff -u php4/pear/DB/mssql.php:1.34 php4/pear/DB/mssql.php:1.35
--- php4/pear/DB/mssql.php:1.34 Thu Nov 1 19:45:39 2001
+++ php4/pear/DB/mssql.php Wed Dec 5 20:42:16 2001
@@ -16,7 +16,7 @@
// | Authors: Sterling Hughes <sterling@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: mssql.php,v 1.34 2001/11/02 00:45:39 cox Exp $
+// $Id: mssql.php,v 1.35 2001/12/06 01:42:16 cox Exp $
//
// Database independent query interface definition for PHP's Microsoft SQL Server
// extension.
@@ -52,9 +52,11 @@
function connect($dsninfo, $persistent = false)
{
- if (!DB::assertExtension('mssql') &&
!DB::assertExtension('sybase'))
+ if (!DB::assertExtension('mssql') || !DB::assertExtension('sybase')
+ || !DB::assertExtension('sybase_ct'))
+ {
return $this->raiseError(DB_ERROR_EXTENSION_NOT_FOUND);
-
+ }
$this->dsn = $dsninfo;
$user = $dsninfo['username'];
$pw = $dsninfo['password'];