summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-03-25 21:14:54 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-03-25 21:14:54 +0000
commitf7afe052907c9343640e5e2569a47d62aa2328a5 (patch)
treecf85e9c48a2118c899e74c6bc68e9500408044a4 /lib/sqlalchemy/sql.py
parentd4800b86d18429d193ce86efbb39089bc63d9b9e (diff)
downloadsqlalchemy-f7afe052907c9343640e5e2569a47d62aa2328a5.tar.gz
removed all "tablename + '_' + columname" code and replaced with column._label, to take
advantage of column labeling rules bind param compilation,when it unique-ifys the name of bind params, maintains the length of the bind parameter name instead of appending to it
Diffstat (limited to 'lib/sqlalchemy/sql.py')
-rw-r--r--lib/sqlalchemy/sql.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py
index d0ab4578a..c4cb4d148 100644
--- a/lib/sqlalchemy/sql.py
+++ b/lib/sqlalchemy/sql.py
@@ -1039,7 +1039,7 @@ class ColumnClause(ColumnElement):
if self.table.name is None:
return BindParamClause(self.text, obj, shortname=self.text, type=self.type)
else:
- return BindParamClause(self.table.name + "_" + self.text, obj, shortname = self.text, type=self.type)
+ return BindParamClause(self._label, obj, shortname = self.text, type=self.type)
def _make_proxy(self, selectable, name = None):
c = ColumnClause(name or self.text, selectable)
c._original = self.original