Fix Database().create_query() to actually initialize the Query with the correct object.
[notmuch] / cnotmuch / database.py
index b759391af9909c219dc1ec1029081ce40b923536..dde7da16eecea67fec9e513d27c16588a1abccf8 100644 (file)
@@ -314,7 +314,7 @@ class Database(object):
         # Raise a NotmuchError if not initialized
         self._verify_initialized_db()
 
-        return Query(self._db, querystring)
+        return Query(self, querystring)
 
     def __repr__(self):
         return "'Notmuch DB " + self.get_path() + "'"