diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-08-31 23:13:14 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-08-31 23:13:14 +0000 |
commit | e168ef63a9a1306232b4a3c87d6264f2263c9e15 (patch) | |
tree | bb7ff4ac775c2dfbfc4d860ac9cf4aff891c50d0 /lib/sqlalchemy/ansisql.py | |
parent | 0c7250a4740b26875d94fc9a1cb714fc970ea700 (diff) | |
download | sqlalchemy-e168ef63a9a1306232b4a3c87d6264f2263c9e15.tar.gz |
some tweaks to oracle casing...
Diffstat (limited to 'lib/sqlalchemy/ansisql.py')
-rw-r--r-- | lib/sqlalchemy/ansisql.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/ansisql.py b/lib/sqlalchemy/ansisql.py index d5b31c8aa..bd367918c 100644 --- a/lib/sqlalchemy/ansisql.py +++ b/lib/sqlalchemy/ansisql.py @@ -556,7 +556,7 @@ class ANSICompiler(sql.Compiled): # case one: no parameters in the statement, no parameters in the # compiled params - just return binds for all the table columns if self.parameters is None and stmt.parameters is None: - return [(c, sql.bindparam(c.name, type=c.type)) for c in stmt.table.columns] + return [(c, sql.bindparam(c.key, type=c.type)) for c in stmt.table.columns] # if we have statement parameters - set defaults in the # compiled params @@ -589,7 +589,7 @@ class ANSICompiler(sql.Compiled): if d.has_key(c): value = d[c] if sql._is_literal(value): - value = sql.bindparam(c.name, value, type=c.type) + value = sql.bindparam(c.key, value, type=c.type) values.append((c, value)) return values |