Ticket #92 (new defect)

Opened 1 year ago

Last modified 2 weeks ago

problem when retrieving floats from the database

Reported by: flack Assigned to: piotras
Priority: major Milestone: 8.09 Ragnaroek
Component: Midgard Core Version: 1.8 Thor
Keywords: Cc:

Description

sample code to reproduce the problem (tested on Mgd 1.8.4/PHP 5.2)

$object1 = new my_midgard_class();
$object1->floatValue = 444.44;
$object1->create();
//this writes 444.44 to the database like it should

$object2 = new my_midgard_class($object1->id);
var_dump($object2->floatValue);
//this prints "float 444,440002"

Change History

01/30/08 00:33:50 changed by flack

  • version set to 1.8.

09/30/08 14:44:13 changed by bergie

  • milestone set to 8.09 Ragnaroek.