Documenations on MSEnum incorrect
Issue #1108
resolved
The documentation at http://www.sqlalchemy.org/docs/05/types.html#types_dialect has a bad example of how to use MSEnum() which will not work.
from sqlalchemy.databases.mysql import MSEnum, MSBigInteger
table = Table('foo', meta,
Column('enumerates', MSEnum('a', 'b', 'c')),
Column('id', MSBigInteger)
)
should be
from sqlalchemy.databases.mysql import MSEnum, MSBigInteger
table = Table('foo', meta,
Column('enumerates', MSEnum("'a'", "'b'", "'c'")),
Column('id', MSBigInteger)
)
Comments (2)
-
-
repo owner - removed milestone
Removing milestone: 0.5.0 (automated comment)
- Log in to comment
Unless I'm missing something this was changed in a00b42b289e81749abe1037d96147fe2320030ce. Therefore the documentation is correct.