On Feb 3, 2010, at 12:07 PM, John wrote:
> I'm little confused by this thread. I still do not understand the central
> issue. I have used floats with Dabo for years without issue with Postgres.
> So I'm missing something. Jacek, to better understand the issue would you
> provide the postgres data type you are using. And maybe the code for a
> bizobject. I'll test it with my forms.
He already did: double precision. Since that's not a native Python
type, Dabo converts it to Decimal if Decimal is available. psycopg, though,
returns it as a float. So the first time through the query, these values show
up in Dabo as Decimal, but if you immediately requery, the type correction code
was being skipped, and they would show up in Dabo as float.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]