X-Git-Url: https://git.jsancho.org/?p=mojodb.git;a=blobdiff_plain;f=MySQL.py;h=a3046e6456a5225abd865f52f897c215d4cce8a8;hp=76f7312ef1dc8e74db64e6ebdc8f86e84751e6cc;hb=78dffed58cc217f429a98f16cec881636f2cc444;hpb=220f54d95c0f0cad16882f379748c1164adc7c84 diff --git a/MySQL.py b/MySQL.py index 76f7312..a3046e6 100644 --- a/MySQL.py +++ b/MySQL.py @@ -49,7 +49,7 @@ class Connection(mojo.Connection): elif type(field) is dict: return "(%s)" % self._get_sql_query(db_name, field) else: - return str(field) + return "'%s'" % str(field) def _get_sql_query(self, db_name, query): sql = "SELECT "