]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- reworked the DDL generation of ENUM and similar to be more platform agnostic.
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 6 Dec 2009 19:51:10 +0000 (19:51 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 6 Dec 2009 19:51:10 +0000 (19:51 +0000)
commitf9cb6f5834fb1acf4460fd9bb6b72f8c76f8c36c
treed2ec1ec2f53858f927db3059cc0cf9ba6a8034d5
parent4ca12d76bd8580d56c4ec1f7ed95c0e37a4c281a
- reworked the DDL generation of ENUM and similar to be more platform agnostic.
Uses a straight CheckConstraint with a generic expression.  Preparing for boolean
constraint in [ticket:1589]
- CheckConstraint now accepts SQL expressions, though support for quoting of values
will be very limited.  we don't want to get into formatting dates and such.
13 files changed:
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/schema.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/util.py
lib/sqlalchemy/types.py
test/dialect/test_mysql.py
test/dialect/test_postgresql.py
test/dialect/test_sqlite.py
test/engine/test_metadata.py
test/sql/test_constraints.py