summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorPaul Evans <leonerd@leonerd.org.uk>2015-03-11 17:55:31 +0000
committerPaul Evans <leonerd@leonerd.org.uk>2015-03-11 17:55:31 +0000
commitd33a3b91c391578fe6809d4028c0e8481dab00cd (patch)
tree46fc80ca894883a97ffb4bf520630f83b3d081ae /synapse/storage/_base.py
parentAgain, underscore, not hyphen (diff)
parentAppease pep8 (diff)
downloadsynapse-d33a3b91c391578fe6809d4028c0e8481dab00cd.tar.xz
Merge pull request #107 from matrix-org/add_desc_to_storage_execute
Add desc to storage execute
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index 3725c9795d..3ea7382760 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -259,7 +259,7 @@ class SQLBaseStore(object):
         )
         return results
 
-    def _execute(self, decoder, query, *args):
+    def _execute(self, desc, decoder, query, *args):
         """Runs a single query for a result set.
 
         Args:
@@ -277,10 +277,10 @@ class SQLBaseStore(object):
             else:
                 return cursor.fetchall()
 
-        return self.runInteraction("_execute", interaction)
+        return self.runInteraction(desc, interaction)
 
-    def _execute_and_decode(self, query, *args):
-        return self._execute(self.cursor_to_dict, query, *args)
+    def _execute_and_decode(self, desc, query, *args):
+        return self._execute(desc, self.cursor_to_dict, query, *args)
 
     # "Simple" SQL API methods that operate on a single table with no JOINs,
     # no complex WHERE clauses, just a dict of values for columns.