cvs: pear /DB/DB mssql.php

From: Date: Fri, 10 Jun 2005 13:04:18 +0000
Subject: cvs: pear /DB/DB mssql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-32452@lists.php.net to get a copy of this message
danielc Fri Jun 10 09:04:18 2005 EDT Modified files: /pear/DB/DB mssql.php Log: * Add notes about needing --with-mssql and being only for mssql databases. http://cvs.php.net/diff.php/pear/DB/DB/mssql.php?r1=1.83&r2=1.84&ty=u Index: pear/DB/DB/mssql.php diff -u pear/DB/DB/mssql.php:1.83 pear/DB/DB/mssql.php:1.84 --- pear/DB/DB/mssql.php:1.83 Mon Mar 7 13:24:51 2005 +++ pear/DB/DB/mssql.php Fri Jun 10 09:04:14 2005 @@ -20,7 +20,7 @@ * @author Daniel Convissor <danielc@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: mssql.php,v 1.83 2005/03/07 18:24:51 danielc Exp $ + * @version CVS: $Id: mssql.php,v 1.84 2005/06/10 13:04:14 danielc Exp $ * @link http://pear.php.net/package/DB */ @@ -35,6 +35,14 @@ * * These methods overload the ones declared in DB_common. * + * DB's mssql driver is only for Microsfoft SQL Server databases. + * + * If you're connecting to a Sybase database, you MUST specify "sybase" + * as the "phptype" in the DSN. + * + * This class only works correctly if you have compiled PHP using + * --with-mssql=[dir_to_FreeTDS]. + * * @category Database * @package DB * @author Sterling Hughes <sterling@php.net> @@ -316,6 +324,14 @@ } } if ($fetchmode & DB_FETCHMODE_ASSOC) { + /* + * The mssql_fetch_array() only works correctly if you have + * compiled PHP using --with-mssql=[dir_to_FreeTDS]. + * + * Also, DB's mssql driver is only for Microsfoft SQL Server + * databases. If you're connecting to a Sybase database, you + * MUST specify "sybase" as the "phptype" in the DSN. + */ $arr = @mssql_fetch_array($result, MSSQL_ASSOC); if ($this->options['portability'] & DB_PORTABILITY_LOWERCASE && $arr) { $arr = array_change_key_case($arr, CASE_LOWER);

« previous php.pear.cvs (#32452) next »