Re: [sqlalchemy] StaleDataError/ObjectDeletedError

2014-07-12 Thread Michael Bayer
On Jul 12, 2014, at 8:17 AM, Michael Bayer wrote: > If decimal accuracy is of any concern, you should be using Decimal objects > fully, never a Python float, and if you are using a Numeric without > asdecimal=False this is more appropriate. > sorry, asdecimal=True, use Decimal objects, asdec

Re: [sqlalchemy] StaleDataError/ObjectDeletedError

2014-07-12 Thread Michael Bayer
On Jul 12, 2014, at 4:49 AM, Staszek wrote: > > Not really, no, yes. > > The problem seems to have been with assignment of float values. It was > like this: > > base.py:847: UPDATE buildings SET glatitude=%s, glongitude=%s WHERE > buildings.id = %s > base.py:849: (52.0210673, 20.2152834, 1) >

Re: [sqlalchemy] StaleDataError/ObjectDeletedError

2014-07-12 Thread Staszek
On 2014-07-11 23:18, Mike Bayer wrote: > > On 7/11/14, 5:07 PM, Staszek wrote: >> On 2014-02-01 00:09, Michael Bayer wrote: >>> On Jan 31, 2014, at 5:24 PM, lars van gemerden >> > wrote: >>> Hi, all I am running into these 2 errors and have run out of id