#21747 [Bgs]: odbc_connect changes calc.-outputformat
| From: | norbert dot bruder at friedrich-streb dot de | Date: | Wed, 29 Jan 2003 11:46:22 +0000 |
| Subject: | #21747 [Bgs]: odbc_connect changes calc.-outputformat | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31558@lists.php.net to get a copy of this message | ||
ID: 21747
User updated by: norbert.bruder@friedrich-streb.de
Reported By: norbert.bruder@friedrich-streb.de
Status: Bogus
Bug Type: ODBC related
Operating System: Win 2000
PHP Version: 4.3.0
New Comment:
I think it is a odbc-problem:
<?php
$id = odbc_connect("AccessDSN","","");
print(123/10);
print("<br>");
$id = odbc_connect("PervasiveDSN","","");
print(123/10);
?>
This displays:
12.3
12,3
Previous Comments:
------------------------------------------------------------------------
[2003-01-19 16:13:21] kalowsky@php.net
This isn't an ODBC issue. ODBC doesn't care how the data is stored, it
just returns it. Your problem lays in the database you're connecting
to. Fix that, and I'm sure you'll find ODBC to be working as expected.
------------------------------------------------------------------------
[2003-01-19 08:41:59] norbert.bruder@friedrich-streb.de
After using $id=odbc_connect(...) all calculation (float/double)
results are in German format:
ex. print(123/10); will display 12,3
no further operation is possible.
odbc-driver: pervasive 2000 database
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21747&edit=1