|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-12-23 12:22 UTC] cmb@php.net
[2020-12-23 12:22 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 09:00:02 2025 UTC |
Description: ------------ I'm working with geolocation and storing latitude and longitude data in a DOUBLE PRECISION field on firebird. When searching for these records, the PDO is rounding the values, as well as returning them as a string. The insertion of the data is not done from PDO but by an external system and is correct. Test script: --------------- <?php $conn = new PDO("firebird:dbname={$database}", "SYSDBA", "masterkey"); $query = $conn->query('SELECT CAST(25.3639309364232 AS DOUBLE PRECISION) FROM RDB$DATABASE'); echo $query->fetchColumn(); Expected result: ---------------- 25.3639309364232 Actual result: -------------- 25.363931