From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.3.0
PHP Bug Type:     Sybase-ct (ctlib) related
Bug description:  Float fields after first row trucate to integer

If the database has a float or double value, and you
select a number of rows, the first row's value is
returned correctly as a double, but subsequent rows'
values are returned truncated and converted to integer. This may be the
same bug reported in "suspended"
report # 21047.

I think the problem is in 
ext/sybase_ct/php_sybase_ct.c in the function 
php_sybase_fetch_result_row(). On line 1062 you
will find a second statement on the line:
          result->numerics[j]= 1;
Which seems to set the field type back to integer after
processing the first row.
-- 
Edit bug report at http://bugs.php.net/?id=21703&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21703&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21703&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21703&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21703&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21703&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21703&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21703&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21703&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21703&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21703&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21703&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21703&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21703&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21703&r=gnused

Reply via email to