summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2009-09-12 00:18:06 +0000
committerPhilip Jenvey <pjenvey@underboss.org>2009-09-12 00:18:06 +0000
commit6a8b52c4069886d8223b97ea6fc5ef65eb4dcc8d (patch)
tree0e51a3d60f8543d08a6dc2bf5e49d8bc13cf7bcc /lib
parentd82894bc406e4ba48c36d67ccbd26fa954dc5773 (diff)
downloadsqlalchemy-6a8b52c4069886d8223b97ea6fc5ef65eb4dcc8d.tar.gz
o don't need to str() Jython arrays twice
o map the Binary types w/ new str handling in mssql's BinaryTest.test_binary
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py
index 9a35e1a4a..cdd5439db 100644
--- a/lib/sqlalchemy/types.py
+++ b/lib/sqlalchemy/types.py
@@ -782,7 +782,7 @@ class Binary(TypeEngine):
def process(value):
if value is not None:
if util.jython and isinstance(value, array.array):
- value = value.tostring()
+ return value.tostring()
return str(value)
else:
return None