I have two scalar columns in this example. (This is SQLAlchemy-0.6.4)
========= To NULL ==============
print l.percentofsale1
100
l.percentofsale1=None
attributes.get_history(l,'percentofsale1')
([None], (), [Decimal('100')])
========= From NULL ==============
print l.discount
None
l.discount=Decimal(100)
attributes.get_history(l,'discount')
([Decimal('100')], (), ())
I expected to be able to see the history moving from None to
Decimal('100') like this:
([Decimal('100')], (), [None])
Which would seem consistent with moving To NULL. Why is the
history.deleted () instead of [None]?
Thanks,
Kent
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected].
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.