Date: 02/16/01
- Next message: Celestino Roberto Alejandro: "[PHP-DEV] (robert)How i can get a CVS account?"
- Previous message: hholzgra <email protected>: "[PHP-DEV] PHP 4.0 Bug #9293 Updated: Character 0x1A seems to be unbreakabe barrier for all functions reading files."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 9257
User Update by: fabionl <email protected>
Status: Assigned
Bug Type: InterBase related
Description: Problem with values returned from a select statement
ok... really thx... :)
[]'s
Previous Comments:
---------------------------------------------------------------------------
[2001-02-14 18:54:42] jah <email protected>
Yes, this seems quite bad, and I got today another email
(privately) complaining about a same kind of thing
happening. I'm afraid it takes a few days before I can
really look what's happening, it can take some time (which
I don't have much...). Fortunately, the other bug reporter
gave quite a good hint where exactly in the source the bug seems to be.
---------------------------------------------------------------------------
[2001-02-14 08:14:05] fabionl <email protected>
$sele = "select data,hora,historico,valor from saldos ";
$sele .= "where data between '$dataini1' and '$datafin1'";
$q = ibase_prepare($i,$sele);
$result = ibase_execute($q);
while ($row = ibase_fetch_object($result))
{
echo $row->VALOR;
}
//------------
saldos is a view and its defined as:
CREATE VIEW "SALDOS" (
"DATA",
"HORA",
"CAIXA",
"VALOR",
"HISTORICO"
) AS
SELECT data,hora,caixa,valor,historico
FROM entradas
UNION
SELECT data, hora, caixa, (valor*-1) "VALOR", historico
FROM saidas
;
The field "valor" in the tables "entradas" and "saidas" is defined as numeric(11,2)...
The problem is that the code above returns for example "10.10" when the value of the field is "10.01"...
it's a really big problem, and i dont know what to do... :(
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9257
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Celestino Roberto Alejandro: "[PHP-DEV] (robert)How i can get a CVS account?"
- Previous message: hholzgra <email protected>: "[PHP-DEV] PHP 4.0 Bug #9293 Updated: Character 0x1A seems to be unbreakabe barrier for all functions reading files."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

