- changed milestone to 0.3.0
booleans dont work in MS-SQL
if you have BOOLEAN and set a bind parameter to True/False using pymssql, you get an internal error.
Comments (6)
-
reporter -
Account Deleted - attached tmp.py
two methods to add to SLBoolean (and possibly MSBoolean) class to fix broken boolean handling code.
-
Account Deleted this problem exists in sqlite.py as well. both sqlite and mssql store True/False as 1/0. i fixed this by adding two methods to the SLBoolean (or MSBoolean) classes (attached).
i don't know SQLAlchemy well enough to determine if this is an acceptable fix or not, but it works for me for now. there should probably be a common class for booleans that are represented as integers, which is subclassed for the different databases.
-
reporter yes it looks reasonable, ill take a look at this soon. thanks !
-
reporter - changed status to resolved
this was fixed for mysql/sqlite/ms-sql (tested for the first two only tho) in changeset:1704.
-
reporter - removed milestone
Removing milestone: 0.3.0 (automated comment)
- Log in to comment