Skip to content

Commit c80705c

Browse files
committed
Fixed a bug with Table() constructors
1 parent 1185297 commit c80705c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ release.
77
Version 0.11
88
````````````
99

10+
- Fixed a bug introduced in 0.10 with alternative table constructors.
11+
1012
Version 0.10
1113
````````````
1214

flaskext/sqlalchemy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _create_scoped_session(db, options):
5454
def _make_table(db):
5555
def _make_table(*args, **kwargs):
5656
if len(args) > 1 and isinstance(args[1], db.Column):
57-
args = (args[0], db.metadata) + args[2:]
57+
args = (args[0], db.metadata) + args[1:]
5858
return sqlalchemy.Table(*args, **kwargs)
5959
return _make_table
6060

0 commit comments

Comments
 (0)