]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fixed up the pypostgresql PGNumeric bind_processor to convert input to a string.
authorMichael Trier <mtrier@gmail.com>
Mon, 22 Feb 2010 20:24:06 +0000 (20:24 +0000)
committerMichael Trier <mtrier@gmail.com>
Mon, 22 Feb 2010 20:24:06 +0000 (20:24 +0000)
lib/sqlalchemy/dialects/postgresql/pypostgresql.py

index 88f1acde721154b47b9188480392fc6e8db76a79..1e401579e04b14d4e50f3ae3f19eae3b0712af00 100644 (file)
@@ -16,7 +16,7 @@ from sqlalchemy import processors
 
 class PGNumeric(sqltypes.Numeric):
     def bind_processor(self, dialect):
-        return None
+        return processors.to_str
 
     def result_processor(self, dialect, coltype):
         if self.asdecimal: