numeric types are going to come out using decimal.Decimal objects in 0.4 but not exactly sure whats happening there...do a repr(m.price).
On Sep 7, 2007, at 12:57 PM, remi jolin wrote: > > Hello, > > I have the following definition (using Elixir) > class Manifestation(Entity): > has_field('price', Numeric) > The DB is mysql > > and something like > m = Manifestation(price=10.0) > > then when accessing to this manifestation again (after flush, > clear, etc...) > I have this strange behavior >>>> m.price > 10 > False >>>> m.price > 10.0 > True >>>> m.price > 12.34 > True > > The same definition works great when using a sqlite DB. > Any idea ? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---