From: Michael Trier Date: Mon, 22 Feb 2010 20:24:06 +0000 (+0000) Subject: Fixed up the pypostgresql PGNumeric bind_processor to convert input to a string. X-Git-Tag: rel_0_6beta2~155 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=258acbeb72f012abcba1618e6930dda58307c5cc;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fixed up the pypostgresql PGNumeric bind_processor to convert input to a string. --- diff --git a/lib/sqlalchemy/dialects/postgresql/pypostgresql.py b/lib/sqlalchemy/dialects/postgresql/pypostgresql.py index 88f1acde72..1e401579e0 100644 --- a/lib/sqlalchemy/dialects/postgresql/pypostgresql.py +++ b/lib/sqlalchemy/dialects/postgresql/pypostgresql.py @@ -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: