php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21747 odbc_connect changes calc.-outputformat
Submitted: 2003-01-19 08:41 UTC Modified: 2003-01-29 05:46 UTC
From: norbert dot bruder at friedrich-streb dot de Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 4.3.0 OS: Win 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: norbert dot bruder at friedrich-streb dot de
New email:
PHP Version: OS:

 

 [2003-01-19 08:41 UTC] norbert dot bruder at friedrich-streb dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-19 16:13 UTC] 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-29 05:46 UTC] norbert dot bruder at friedrich-streb dot de
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC