]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- for DB's w/o a real "autoincrement", reflection should be returning
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 8 Oct 2015 03:41:24 +0000 (23:41 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 8 Oct 2015 03:41:24 +0000 (23:41 -0400)
"auto", doesn't matter if there's a default here

lib/sqlalchemy/dialects/firebird/base.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/sqlite/base.py

index c34829cd3a528f31d39b88bc88e97b04bf1a107e..acd419e859285c9334617f358b54816da00ff4e6 100644 (file)
@@ -648,7 +648,7 @@ class FBDialect(default.DefaultDialect):
                 'type': coltype,
                 'nullable': not bool(row['null_flag']),
                 'default': defvalue,
-                'autoincrement': defvalue is None
+                'autoincrement': 'auto',
             }
 
             if orig_colname.lower() == orig_colname:
index 2449b5a81ec38b4f9fd388a42f02e2263fa1f061..82ec72f2bc1bbef57e81473c665e9c5feaafb326 100644 (file)
@@ -1283,7 +1283,7 @@ class OracleDialect(default.DefaultDialect):
                 'type': coltype,
                 'nullable': nullable,
                 'default': default,
-                'autoincrement': default is None
+                'autoincrement': 'auto',
             }
             if orig_colname.lower() == orig_colname:
                 cdict['quote'] = True
index 3f62d76d79c225e2ea62a769a9aad00d52a9e327..a1786d16c7e6f1c71d80932ae763a16b9768a1fb 100644 (file)
@@ -1219,7 +1219,7 @@ class SQLiteDialect(default.DefaultDialect):
             'type': coltype,
             'nullable': nullable,
             'default': default,
-            'autoincrement': 'auto' if default is None else False,
+            'autoincrement': 'auto',
             'primary_key': primary_key,
         }