diff options
author | aisch <me+bosch@aitmp.com> | 2015-11-23 10:22:50 -0800 |
---|---|---|
committer | aisch <me+bosch@aitmp.com> | 2015-11-23 10:22:50 -0800 |
commit | 0921a6abbc8246c57f447af7a6ac240778127fae (patch) | |
tree | fbc25b9774f01f177342dec52aeeb1fa643b2cc6 /lib/sqlalchemy/dialects/postgresql/ext.py | |
parent | f7943db2f32e3cace9cadc5cf05402d425b76d33 (diff) | |
download | sqlalchemy-pr/215.tar.gz |
fix postgresql exclude contraint to check when= against None rather than __bool__ evalpr/215
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/ext.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/ext.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/ext.py b/lib/sqlalchemy/dialects/postgresql/ext.py index 9b2e3fd73..1a443c2d7 100644 --- a/lib/sqlalchemy/dialects/postgresql/ext.py +++ b/lib/sqlalchemy/dialects/postgresql/ext.py @@ -142,7 +142,7 @@ static/sql-createtable.html#SQL-CREATETABLE-EXCLUDE ) self.using = kw.get('using', 'gist') where = kw.get('where') - if where: + if where is not None: self.where = expression._literal_as_text(where) def copy(self, **kw): |