Permalink
Browse files

Fixed a bug with Table() constructors

  • Loading branch information...
1 parent 1185297 commit c80705c1dde65586507bff338b8ef1aa5a577c23 @mitsuhiko committed Feb 17, 2011
Showing with 3 additions and 1 deletion.
  1. +2 −0 CHANGES
  2. +1 −1 flaskext/sqlalchemy.py
View
@@ -7,6 +7,8 @@ release.
Version 0.11
````````````
+- Fixed a bug introduced in 0.10 with alternative table constructors.
+
Version 0.10
````````````
View
@@ -54,7 +54,7 @@ def _create_scoped_session(db, options):
def _make_table(db):
def _make_table(*args, **kwargs):
if len(args) > 1 and isinstance(args[1], db.Column):
- args = (args[0], db.metadata) + args[2:]
+ args = (args[0], db.metadata) + args[1:]
return sqlalchemy.Table(*args, **kwargs)
return _make_table

0 comments on commit c80705c

Please sign in to comment.