From b4ec72fb537e39f1b5d05936212203798f29958e Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 7 Sep 2022 18:05:01 -0700 Subject: [PATCH] Use execute_read for explain query plan. --- voussoirkit/worms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voussoirkit/worms.py b/voussoirkit/worms.py index 3ce863d..db12070 100644 --- a/voussoirkit/worms.py +++ b/voussoirkit/worms.py @@ -338,7 +338,7 @@ class Database(metaclass=abc.ABCMeta): return (row is not None) def explain(self, query, bindings=None) -> str: - exp = self.execute('EXPLAIN QUERY PLAN ' + query, bindings) + exp = self.execute_read('EXPLAIN QUERY PLAN ' + query, bindings) return '\n'.join(str(tuple(x)) for x in exp.fetchall()) def get_object_by_id(self, object_class, object_id):