]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fixed reflection of Column's nullable property [firebird]
authorRoger Demetrescu <roger.demetrescu@gmail.com>
Sat, 6 Oct 2007 11:10:56 +0000 (11:10 +0000)
committerRoger Demetrescu <roger.demetrescu@gmail.com>
Sat, 6 Oct 2007 11:10:56 +0000 (11:10 +0000)
CHANGES
lib/sqlalchemy/databases/firebird.py

diff --git a/CHANGES b/CHANGES
index da48626ae08716f4b6189e267446a2ac899def1c..7f2ed097c7d30203333415990f7191f9f7774f18 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -38,6 +38,7 @@
    - passthrough for stringified dates
 - firebird
     - supports_sane_rowcount() set to False due to ticket #370 (right way).
+    - fixed reflection of Column's nullable property.
       
 0.3.10
 - general
index 514890dd14867d410c8955145bf4a064cbe11586..03cb891a23491c091fbf17f15e205f6bc24d6bad 100644 (file)
@@ -262,6 +262,9 @@ class FBDialect(ansisql.ANSIDialect):
             # is it a primary key?
             kw['primary_key'] = name in pkfields
 
+            # is it nullable ?
+            kw['nullable'] = not bool(row['NULL_FLAG'])
+
             table.append_column(schema.Column(*args, **kw))
             row = c.fetchone()