summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ansisql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-01-20 00:42:07 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-01-20 00:42:07 +0000
commit2808d04dd8faec0b7a8ac280ff23674cd0a36fc6 (patch)
tree64b0869431e4bd7165c6442a3c8f0a99870c6a41 /lib/sqlalchemy/ansisql.py
parentc9e7e698e60d9d15e113a0b936ea630bcda5443a (diff)
downloadsqlalchemy-2808d04dd8faec0b7a8ac280ff23674cd0a36fc6.tar.gz
added explicit bind parameters and column type maps to text type
text type also parses :<string> into bind param objects bind parameters convert their incoming type using engine.type_descriptor() methods types.adapt_type() adjusted to not do extra work with incoming types, since the bind param change will cause it to be called a lot more added tests to new text type stuff, bind params, fixed some type tests added basic docs for using text with binde params
Diffstat (limited to 'lib/sqlalchemy/ansisql.py')
-rw-r--r--lib/sqlalchemy/ansisql.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/ansisql.py b/lib/sqlalchemy/ansisql.py
index f0e0203e9..30060a93c 100644
--- a/lib/sqlalchemy/ansisql.py
+++ b/lib/sqlalchemy/ansisql.py
@@ -174,6 +174,8 @@ class ANSICompiler(sql.Compiled):
else:
self.strings[textclause] = textclause.text
self.froms[textclause] = textclause.text
+ if textclause.typemap is not None:
+ self.typemap.update(textclause.typemap)
def visit_null(self, null):
self.strings[null] = 'NULL'