dabo Commit
Revision 6377
Date: 2011-02-02 10:40:34 -0800 (Wed, 02 Feb 2011)
Author: Uwe_Grauer
Trac: http://trac.dabodev.com/changeset/6377

Changed:
U   trunk/dabo/db/dbFirebird.py

Log:
changed rdb$field_length to rdb$character_lenth on request of Werner F. Bruhin.


Diff:
Modified: trunk/dabo/db/dbFirebird.py
===================================================================
--- trunk/dabo/db/dbFirebird.py 2011-02-02 11:28:15 UTC (rev 6376)
+++ trunk/dabo/db/dbFirebird.py 2011-02-02 18:40:34 UTC (rev 6377)
@@ -147,7 +147,7 @@
 
                # Now get the field info
                sql = """  SELECT b.RDB$FIELD_NAME, d.RDB$TYPE_NAME, 
c.RDB$FIELD_SUB_TYPE,
- c.RDB$FIELD_LENGTH, c.RDB$FIELD_SCALE, b.RDB$FIELD_ID
+ c.RDB$CHARACTER_LENGTH, c.RDB$FIELD_SCALE, b.RDB$FIELD_ID
  FROM RDB$RELATIONS a
  INNER JOIN RDB$RELATION_FIELDS b
  ON a.RDB$RELATION_NAME = b.RDB$RELATION_NAME
@@ -169,7 +169,7 @@
                        if ftype == "text":
                                ft = "C"
                        elif ftype == "varying":
-                               if r["rdb$field_length"] > 64:
+                               if r["rdb$character_length"] > 64:
                                        ft = "M"
                                else:
                                        ft = "C"



_______________________________________________
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]

Reply via email to