summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/util.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-07-17 11:18:59 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-07-17 11:18:59 -0400
commit0a54a4a4b0897bb8eaaf7a7857fb54924ccbd7ef (patch)
tree720aad2b844dbf821d339d365aa77777c7168f3e /lib/sqlalchemy/sql/util.py
parentc59199c9879c3535dc48647a3f61281f0ac631f4 (diff)
downloadsqlalchemy-0a54a4a4b0897bb8eaaf7a7857fb54924ccbd7ef.tar.gz
Fixed bug in :class:`.CheckConstraint` DDL where the "quote" flag from a
:class:`.Column` object would not be propagated. Also in 0.8.3, 0.7.11. [ticket:2784]
Diffstat (limited to 'lib/sqlalchemy/sql/util.py')
-rw-r--r--lib/sqlalchemy/sql/util.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/util.py b/lib/sqlalchemy/sql/util.py
index c894357b5..6796d7edb 100644
--- a/lib/sqlalchemy/sql/util.py
+++ b/lib/sqlalchemy/sql/util.py
@@ -291,7 +291,9 @@ def expression_as_ddl(clause):
return expression.literal_column(_quote_ddl_expr(element.value))
elif isinstance(element, expression.ColumnClause) and \
element.table is not None:
- return expression.column(element.name)
+ col = expression.column(element.name)
+ col.quote = element.quote
+ return col
else:
return None