From 466fd518da6b9c8820a33a9bf8e3d8c0603c01a8 Mon Sep 17 00:00:00 2001 From: Thomas Heavey Date: Mon, 24 Mar 2025 09:22:06 -0400 Subject: [PATCH] bug: fix misquoted string literal should fix https://github.com/piskvorky/sqlitedict/issues/176 --- sqlitedict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlitedict.py b/sqlitedict.py index 3e65724..65186d7 100755 --- a/sqlitedict.py +++ b/sqlitedict.py @@ -360,7 +360,7 @@ def get_tablenames(filename): """get the names of the tables in an sqlite db as a list""" if not os.path.isfile(filename): raise IOError('file %s does not exist' % (filename)) - GET_TABLENAMES = 'SELECT name FROM sqlite_master WHERE type="table"' + GET_TABLENAMES = "SELECT name FROM sqlite_master WHERE type='table'" with sqlite3.connect(filename) as conn: cursor = conn.execute(GET_TABLENAMES) res = cursor.fetchall()