We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 716ff00 commit afd677bCopy full SHA for afd677b
datasette_connectors/cursor.py
@@ -54,7 +54,7 @@ def execute(
54
match = re.search(r'select count\(\*\) from (.*)', sql)
55
results = [{'count(*)': self.connector.table_count(match.group(1))}]
56
elif sql.startswith("PRAGMA table_info("):
57
- match = re.search(r'PRAGMA table_info\((.*)\)', sql)
+ match = re.search(r'PRAGMA table_info\(\[?\"?([\d\w\/]*)\"?\]?\)', sql)
58
results = self.connector.table_info(match.group(1))
59
elif sql.startswith("select name from sqlite_master where rootpage = 0 and ( sql like \'%VIRTUAL TABLE%USING FTS%content="):
60
match = re.search(r'select name from sqlite_master where rootpage = 0 and \( sql like \'%VIRTUAL TABLE%USING FTS%content="(.*)"', sql)
0 commit comments