diff src/memory/sqlite.py @ 441:a6640bb8ee95

core: fixed bad query in Sqlite storage
author Goffi <goffi@goffi.org>
date Sat, 03 Dec 2011 22:21:27 +0100
parents 5e9d28ca5109
children 17c7e48bf68f
line wrap: on
line diff
--- a/src/memory/sqlite.py	Sat Dec 03 19:52:04 2011 +0100
+++ b/src/memory/sqlite.py	Sat Dec 03 22:21:27 2011 +0100
@@ -231,7 +231,7 @@
                 key,value = private
                 private_gen[key] = value
         debug(_("loading general private values [namespace: %s] from database") % (namespace,)) 
-        d = self.dbpool.runQuery("SELECT key,value FROM private_gen WHERE namespace=?", namespace).addCallback(fillPrivates)
+        d = self.dbpool.runQuery("SELECT key,value FROM private_gen WHERE namespace=?", (namespace,)).addCallback(fillPrivates)
         return d.addErrback(lambda x: debug(_("No data present in database for namespace %s") % namespace))
 
     def loadIndPrivates(self, private_ind, namespace, profile):