]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The Boolean type, when used on a backend that doesn't
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 6 Dec 2009 22:58:05 +0000 (22:58 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 6 Dec 2009 22:58:05 +0000 (22:58 +0000)
commit7dc4df8a68eafd406e7378eedbb9c26188611a5c
tree89c6c1d5d7559155e07eeed6545e3362675d685c
parentf9cb6f5834fb1acf4460fd9bb6b72f8c76f8c36c
- The Boolean type, when used on a backend that doesn't
have native boolean support, will generate a CHECK
constraint "col IN (0, 1)" along with the int/smallint-
based column type.  This can be switched off if
desired with create_constraint=False.
Note that MySQL has no native boolean *or* CHECK constraint
support so this feature isn't available on that platform.
[ticket:1589]
14 files changed:
CHANGES
lib/sqlalchemy/dialects/firebird/base.py
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/schema.py
lib/sqlalchemy/types.py
test/dialect/test_mssql.py
test/dialect/test_mysql.py
test/dialect/test_sqlite.py
test/orm/test_assorted_eager.py
test/sql/test_types.py