Re: PHP 4.0 Bug #7583 Updated: odbc_result on integer column returns a float value

From: Date: Fri, 03 Nov 2000 08:29:18 +0000
Subject: Re: PHP 4.0 Bug #7583 Updated: odbc_result on integer column returns a float value
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-36917@lists.php.net to get a copy of this message
----- Original Message ----- From: "Bug Database" <php-dev@lists.php.net> To: <andy@mindgate.net> Sent: Thursday, November 02, 2000 7:47 PM Subject: PHP 4.0 Bug #7583 Updated: odbc_result on integer column returns a float value > ID: 7583 > Updated by: waldschrott > Reported By: andy@mindgate.net > Status: Feedback > Bug Type: ODBC related > Assigned To: > Comments: > > Please provide a reduced code fragment (<15 lines) producing > this behaviour. > > don´t mix up things float!=decimal, which database are you on? if it returns a value of the form xx.00, is it decimal then? Here's the code I used: while (($fetchrowstat=odbc_fetch_row($qryid)) && $counter-->0) { $subnum=(odbc_result($qryid,"submission_num"); ... 'submission_num' is an MS SQL Server 7 _integer_ column of width 4, but $subnum ends up having a value of the form xx.00

« previous php.dev (#36917) next »