DB/mssql.php
| From: | Chris Jackson | Date: | Thu, 27 Sep 2001 14:54:42 +0000 |
| Subject: | DB/mssql.php | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-2084@lists.php.net to get a copy of this message | ||
I've had to make a hack to my local DB/mssql.php in order to make the
results of fetchInto() match those of mysql and others. Currently, mssql
fetchInto() returns an array that includes number and field name keys.
mssql.php, fbsql.php, and pgsql.php use their respective *_fetch_row()'s
*_ASSOC switch to leave out the numbered keys.
If this seems like the right thing to do, could someone with CVS access
update DB/mssql.php ?
Index: php4/pear/DB/mssql.php
===================================================================
RCS file: /repository/php4/pear/DB/mssql.php,v
retrieving revision 1.27
diff -r1.27 mssql.php
130a131,139
> if($ar){
> foreach($ar as $key=>$val) {
> if($x%2){
> $tmp[$key] = $val;
> }
> $x++;
> }
> $ar = $tmp;
> }
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]