diff --git a/lib/query.py b/lib/query.py index 12ea1b8..2f93c27 100644 --- a/lib/query.py +++ b/lib/query.py @@ -44,7 +44,7 @@ def __repr__(self): sel='col{}'.format(self.sel_index), ) if self.conditions: - rep += ' WHERE ' + ' AND '.join(['{} {} {}'.format('col{}'.format(i), self.cond_ops[o], v) for i, o, v in self.conditions]) + rep += ' WHERE ' + ' AND '.join(['{} {} {}'.format('col{}'.format(i), self.cond_ops[o], '\"' + v + '\"' if isinstance(v, str) else v) for i, o, v in self.conditions]) return rep def to_dict(self):