Skip to content

Commit

Permalink
Fixed a bug with Table() constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Feb 17, 2011
1 parent 1185297 commit c80705c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -7,6 +7,8 @@ release.
Version 0.11
````````````

- Fixed a bug introduced in 0.10 with alternative table constructors.

Version 0.10
````````````

Expand Down
2 changes: 1 addition & 1 deletion flaskext/sqlalchemy.py
Expand Up @@ -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

Expand Down

0 comments on commit c80705c

Please sign in to comment.