changeset 441:a6640bb8ee95

core: fixed bad query in Sqlite storage
author Goffi <goffi@goffi.org>
date Sat, 03 Dec 2011 22:21:27 +0100 (2011-12-03)
parents 48277946348b
children ab9ddf6c7eaf
files src/memory/sqlite.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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):