summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-12-06 22:58:05 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-12-06 22:58:05 +0000
commit7dc4df8a68eafd406e7378eedbb9c26188611a5c (patch)
tree89c6c1d5d7559155e07eeed6545e3362675d685c /lib/sqlalchemy/dialects/postgresql/base.py
parentf9cb6f5834fb1acf4460fd9bb6b72f8c76f8c36c (diff)
downloadsqlalchemy-7dc4df8a68eafd406e7378eedbb9c26188611a5c.tar.gz
- 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]
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index d0a87d282..7a9e2e710 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -525,6 +525,7 @@ class PGDialect(default.DefaultDialect):
supports_sane_rowcount = True
supports_native_enum = True
+ supports_native_boolean = True
supports_sequences = True
sequences_optional = True