From 3a7ac3650969e21a79ad15248ed69e20b490225d Mon Sep 17 00:00:00 2001 From: adustman Date: Sun, 22 Apr 2001 01:56:55 +0000 Subject: [PATCH] Be extra-paranoid about default instance quoting. --- mysql/MySQLdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql/MySQLdb.py b/mysql/MySQLdb.py index 41a6f80..b0004c1 100644 --- a/mysql/MySQLdb.py +++ b/mysql/MySQLdb.py @@ -82,7 +82,7 @@ def Instance2Str(o, d): return d[o.__class__](o, d) cl = filter(lambda x,o=o: type(x)==types.ClassType and isinstance(o,x), d.keys()) - if not cl: return string_literal(o) + if not cl: return d[types.StringType](o,d) d[o.__class__] = d[cl[0]] return d[cl[0]](o, d)