We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f9958e commit 490db2cCopy full SHA for 490db2c
1 file changed
test/test_docset.py
@@ -59,12 +59,13 @@ def _test_a_doc_page_index(
59
contains_lenient: list[tuple[str,str]] | None = None,
60
not_contains: list[tuple[str,str]] | None = None,
61
):
62
- sql = f'''
+ sql = '''
63
SELECT type, name
64
FROM searchIndex
65
- WHERE path LIKE '{path}#%'
+ WHERE path LIKE :path_like
66
'''
67
- res = self.cur.execute(sql)
+ data = {'path_like': f'{path}#%'}
68
+ res = self.cur.execute(sql, data)
69
items = res.fetchall()
70
71
for pair in contains_lenient or []:
0 commit comments