dabo Commit
Revision 7251
Date: 2012-09-20 23:12:28 -0700 (Thu, 20 Sep 2012)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/7251
Changed:
U trunk/dabo/db/dbFirebird.py
Log:
Added small fix to distinguish between numeric and floating point type fields,
which are internally stored as double type.
Diff:
Modified: trunk/dabo/db/dbFirebird.py
===================================================================
--- trunk/dabo/db/dbFirebird.py 2012-09-13 19:29:04 UTC (rev 7250)
+++ trunk/dabo/db/dbFirebird.py 2012-09-21 06:12:28 UTC (rev 7251)
@@ -184,7 +184,10 @@
else:
ft = "N"
elif ftype in ("float", "double"):
- ft = "N"
+ if r["rdb$field_scale"] == 0:
+ ft = "F"
+ else:
+ ft = "N"
elif ftype == "date":
ft = "D"
elif ftype == "time":
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]