diff options
Diffstat (limited to 'ext/repair/checkindex.c')
-rw-r--r-- | ext/repair/checkindex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/repair/checkindex.c b/ext/repair/checkindex.c index 58706c1aa..080a51530 100644 --- a/ext/repair/checkindex.c +++ b/ext/repair/checkindex.c @@ -473,7 +473,7 @@ static int cidxLookupIndex( /* Find the table for this index. */ pFindTab = cidxPrepare(&rc, pCsr, - "SELECT tbl_name, sql FROM sqlite_master WHERE name=%Q AND type='index'", + "SELECT tbl_name, sql FROM sqlite_schema WHERE name=%Q AND type='index'", zIdx ); if( rc==SQLITE_OK && sqlite3_step(pFindTab)==SQLITE_ROW ){ |