Bug #9855 Updated: Return column data with correct type
| From: | fmk@php.net | Date: | Sat, 30 Jun 2001 19:25:13 +0000 |
| Subject: | Bug #9855 Updated: Return column data with correct type | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-58561@lists.php.net to get a copy of this message | ||
ID: 9855
Updated by: fmk
Reported By: ron.baldwin@sourceprose.com
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@sourceprose.com
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