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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Apr 28 08:01:29 2024 UTC