From 0fccc960c198609c24e7236970f9fdebe62f6c19 Mon Sep 17 00:00:00 2001 From: adustman Date: Mon, 7 Jul 2003 21:44:40 +0000 Subject: [PATCH] Fix bug 605849 (I hope). --- MySQLdb/MySQLdb/converters.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MySQLdb/MySQLdb/converters.py b/MySQLdb/MySQLdb/converters.py index 0de6db6..1136e8d 100644 --- a/MySQLdb/MySQLdb/converters.py +++ b/MySQLdb/MySQLdb/converters.py @@ -88,7 +88,9 @@ def Instance2Str(o, d): if not cl and hasattr(types, 'ObjectType'): cl = filter(lambda x,o=o: type(x) is types.TypeType - and isinstance(o, x), d.keys()) + and isinstance(o, x) + and d[x] is not Instance2Str, + d.keys()) if not cl: return d[types.StringType](o,d) d[o.__class__] = d[cl[0]]