#19374 [Opn->Fbk]: Float values are not correctly handled when fetching data from MS SQL Server 7
| From: | iliaa@php.net | Date: | Tue, 01 Oct 2002 00:34:20 +0000 |
| Subject: | #19374 [Opn->Fbk]: Float values are not correctly handled when fetching data from MS SQL Server 7 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-20842@lists.php.net to get a copy of this message | ||
ID: 19374
Updated by: iliaa@php.net
Reported By: chemolli.francesco@usi.unicredit.it
-Status: Open
+Status: Feedback
Bug Type: Sybase (dblib) related
Operating System: Linux
PHP Version: 4CVS-2002-09-12
New Comment:
If you change the locale to english via setlocale(LC_NUMERIC, 'POSIX');
does it fix the problem?
Previous Comments:
------------------------------------------------------------------------
[2002-09-12 07:24:30] chemolli.francesco@usi.unicredit.it
If a table on a MS SQL Server (verified on version 7.0) contains a
float field, that float is always returned as 0.
This problem has been verified using any version of the freetds library
from 0.53 to today's snapshot, and PHP 4.1.1, 4.2.2 and today's
snapshot.
The problem is NOT in the freetds library, performing the queries from
tsql or sqsh returns the correct values.
The problem does _NOT_ show when using the ct-library.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19374&edit=1