FTS tables now detected by inspect(), closes #240

This commit is contained in:
Simon Willison 2018-04-28 17:04:32 -07:00
commit aa954382c3
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
3 changed files with 22 additions and 8 deletions

View file

@ -427,7 +427,7 @@ def detect_spatialite(conn):
return len(rows) > 0
def detect_fts(conn, table, return_sql=False):
def detect_fts(conn, table):
"Detect if table has a corresponding FTS virtual table and return it"
rows = conn.execute(detect_fts_sql(table)).fetchall()
if len(rows) == 0: