|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-13 13:44 UTC] milan dot babuskov at gmail dot com
[2007-08-16 13:40 UTC] milan dot babuskov at gmail dot com
[2007-10-21 16:11 UTC] ilpochta at gmail dot com
[2007-11-08 19:44 UTC] lwe@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 01:00:02 2025 UTC |
Description: ------------ PHP does not extract the values in NUMERIC(18,7) and NUMERIC(18,8) columns correctly. Reproduce code: --------------- create table test ( d1 numeric(18,7), d2 numeric(18,8)); insert into test (d1,d2) values (6543210.1234567, 87654321.01234567); commit; <? ibase_connect('localhost:mydb','sysdba', 'aa'); $res = ibase_query('select d5, d6 from test'); $row = ibase_fetch_row($res); echo "D5 = ".$row[0].",\n"; echo "D6 = ".$row[1]."\n"; ?> Expected result: ---------------- D5 = 6543210.1234567, D6 = 87654321.01234567 Actual result: -------------- D5 = 654321.1234567, D6 = 8765432.101234567