|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-28 13:28 UTC] abies@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 21:00:01 2025 UTC |
Description: ------------ fetching rows, from a numeric(18,4) column gives wrong value (-0.0000) when value is -1 I verified this with iboconsole, and i can see that the correct value is in the database and iboconsole also returns the correct value. Reproduce code: --------------- <?php $db = ibase_connect("server:/mydb.fdb", "SYSDBA", "mypass"); if ($db) $q = ibase_query($db, "select * from test"); if($q) while($row = ibase_fetch_row($q)) var_dump($row); ?> Test table: CREATE TABLE TEST ( testcol numeric(18,4) ); Expected result: ---------------- -1.0000 Actual result: -------------- -0.0000