[PHP-DEV] Bug #9855 Updated: Return column data with correct type From: fmk <email protected>
Date: 06/30/01

ID: 9855
Updated by: fmk
Reported By: ron.baldwin <email protected>
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system:
PHP Version: 4.0.4pl1
Assigned To:
Comments:

Update to php4.0.6, and you will find what you are asking for.

The setting mssql.compatability_mode in php.ini can be used to specify how data are returned.

mssql.compatability_mode = Off Returns data as php types

mssql.compatability_mode = On Returns all data ass strings.

Previous Comments:
---------------------------------------------------------------------------

[2001-03-20 00:04:07] ron.baldwin <email protected>

Suggestion:

Add new data retrieval functions (or extend mssql_fetch_array and mssql_fetch_row) to return each column in a type that matches the underlying database column type instead of the always as type string. Also, return columns that are NULL as PHP's null type (instead of boolean/false).

Two questions - is this the proper place to submit suggestions, and if so should this also be submitted to the general 'database functions' category (I know PHP's ODBC functions exhibit the same behavior)?

---------------------------------------------------------------------------

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9855&edit=2

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>