Setting attributes on ActiveMapper Boolean Types not working properly with MySQL 5.x
Issue #359
resolved
Problem using MySQL 5.x
class User(ActiveMapper): class mapping: id = column(Integer, primary_key=True) enabled = column(Boolean, default=False)
...
user = session.query(User).get_by(id=4) user.enabled = False
...
something like...
File "build\bdist.win32\egg\sqlalchemy\engine\base.py", line 348, in _execute SQLError: (OperationalError) (1366, "Incorrect integer value: 'False' for column 'enabled' at row 2") 'UPDATE tg_user SET enabled=%s WHERE user.id = %s' 4L
last line should be 4L or something.
-percious
Comments (1)
-
repo owner - Log in to comment