Re: DB_FETCHMODE_ASSOC not working with mssql
| From: | bruno.vernay | Date: | Mon, 26 May 2003 16:04:24 +0000 |
| Subject: | Re: DB_FETCHMODE_ASSOC not working with mssql | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5598@lists.php.net to get a copy of this message | ||
Bruno.Vernay wrote:
It has been hard for me to realize, but I came to the conclusion that the php-sybase package that is supposed to cover both sybase and MS-SQL-SERVER doesn't include the mssql code !
The following functions from php-devel/extensions/mssql/php_mssql.c didn't change between PHP versions 4.3.1 and 4.2.3 !
static void php_mssql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
...
/* {{{ proto array mssql_fetch_array(int result_id [, int result_type])
Returns an associative array of the current row in the result set specified by result_id */
PHP_FUNCTION(mssql_fetch_array)
{
php_mssql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, MSSQL_BOTH);
}
So now, I will ask Mandrake for a complete mssql support through the use of rpm.
(It is also possible to slightly modify the Pear DB 1.4 to remove "MSSQL_ASSOC".)
Thanks