]> git.jsancho.org Git - mojodb.git/blobdiff - MySQL.py
msgpack instead cPickle (for multiple platforms) and str instead unicode (thinking...
[mojodb.git] / MySQL.py
index 3ee09aef346bea3cb0e46a9bc9a296c5029a4e67..f5f888828b83109b43b41d7b8d109ee066b5742b 100644 (file)
--- a/MySQL.py
+++ b/MySQL.py
@@ -124,7 +124,7 @@ class Connection(connection.Connection):
         vals = []
         for k, v in values.iteritems():
             keys.append(k)
-            if type(v) in (str, unicode):
+            if type(v) is str:
                 vals.append("'%s'" % v.replace("'", "''"))
             else:
                 vals.append(str(v))