]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
removed attrs key from get_columns return value
authorRandall Smith <randall@tnr.cc>
Sat, 25 Apr 2009 18:58:43 +0000 (18:58 +0000)
committerRandall Smith <randall@tnr.cc>
Sat, 25 Apr 2009 18:58:43 +0000 (18:58 +0000)
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/postgres/base.py
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/reflection.py

index fee22ad11b290f685ba46685fcf33a557cd955e0..3baf7b3a084239baef928aa84e78578090b5ddc6 100644 (file)
@@ -1255,13 +1255,11 @@ class MSDialect(default.DefaultDialect):
                 kwargs['precision'] = numericprec
 
             coltype = coltype(**kwargs)
-            colargs = []
             cdict = {
                 'name' : name,
                 'type' : coltype,
                 'nullable' : nullable,
                 'default' : default,
-                'attrs' : colargs
             }
             cols.append(cdict)
         # autoincrement and identity
index c2eb61afb7e7e2cb548f75ca6cf49835d1b77c7e..eb4fb2d731c69d6ddd4502b365c11cf100196ca4 100644 (file)
@@ -2343,8 +2343,7 @@ class MySQLTableDefinitionParser(object):
         elif default == 'NULL':
             # eliminates the need to deal with this later.
             default = None
-        col_d = dict(name=name, type=type_instance, attrs={},
-                     default=default)
+        col_d = dict(name=name, type=type_instance, default=default)
         col_d.update(col_kw)
         state.columns.append(col_d)
 
index 69461b456bcc5db1dc57e6c2aace68ebac7fe532..ab80a14177c4a9f6e24a2d89d83dda308e3d1fd7 100644 (file)
@@ -653,7 +653,6 @@ class OracleDialect(default.DefaultDialect):
                 'type': coltype,
                 'nullable': nullable,
                 'default': default,
-                'attrs': {}
             }
             columns.append(cdict)
         return columns
index e6be822fd4650f73eb17f9b578d08a3b498fee82..448d3b90aeb75f270f3b3420bd91b202250b792d 100644 (file)
@@ -730,7 +730,7 @@ class PGDialect(default.DefaultDialect):
                         default = match.group(1) + ('"%s"' % sch) + '.' + match.group(2) + match.group(3)
 
             column_info = dict(name=name, type=coltype, nullable=nullable,
-                               default=default, attrs={})
+                               default=default)
             columns.append(column_info)
         return columns
 
index cf83a050003076a953e0dac168331e7703e7af9c..def9b6f899e2e5ed05f09c4e426701f7e87d3636 100644 (file)
@@ -409,7 +409,6 @@ class SQLiteDialect(default.DefaultDialect):
                 'type' : coltype,
                 'nullable' : nullable,
                 'default' : default,
-                'attrs' : {},
                 'primary_key': primary_key
             })
         return columns
index 3fcbb9b37b33d53ec58342b353a177445142c825..9d0f2cb4cd592f6cee09e563974f0899b7eee966 100644 (file)
@@ -198,8 +198,14 @@ class Dialect(object):
         default
           the column's default value
 
-        attrs
-          dict containing optional column attributes
+        autoincrement
+          boolean
+
+        sequence
+          a dictionary of the form
+              {'name' : str, 'start' :int, 'increment': int}
+
+        Additional column attributes may be present.
         """
 
         raise NotImplementedError()
index 6cbb2e2be2f967960dc30f2a95b505b4b961e05f..d4ee3645203c6d2dbc40d9e13e241c8c400170cd 100644 (file)
@@ -283,9 +283,6 @@ class Inspector(object):
             coltype = col_d['type']
             nullable = col_d['nullable']
             default = col_d['default']
-            attrs = col_d['attrs']
-            # construct additional colargs with attrs
-            # currently, it's not used here.
             colargs = []
             col_kw = {}
             if 'autoincrement' in col_d: