diff options
Diffstat (limited to 'ext/expert/sqlite3expert.c')
-rw-r--r-- | ext/expert/sqlite3expert.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/expert/sqlite3expert.c b/ext/expert/sqlite3expert.c index 8627d196f..e4060de68 100644 --- a/ext/expert/sqlite3expert.c +++ b/ext/expert/sqlite3expert.c @@ -434,7 +434,6 @@ static int expertDisconnect(sqlite3_vtab *pVtab){ static int expertBestIndex(sqlite3_vtab *pVtab, sqlite3_index_info *pIdxInfo){ ExpertVtab *p = (ExpertVtab*)pVtab; - sqlite3 *dbv = p->pExpert->dbv; int rc = SQLITE_OK; int n = 0; IdxScan *pScan; @@ -461,7 +460,7 @@ static int expertBestIndex(sqlite3_vtab *pVtab, sqlite3_index_info *pIdxInfo){ && (pCons->op & opmask) ){ IdxConstraint *pNew; - const char *zColl = sqlite3_vtab_collation(dbv, i); + const char *zColl = sqlite3_vtab_collation(pIdxInfo, i); pNew = idxNewConstraint(&rc, zColl); if( pNew ){ pNew->iCol = pCons->iColumn; @@ -1734,7 +1733,7 @@ sqlite3expert *sqlite3_expert_new(sqlite3 *db, char **pzErrmsg){ if( rc==SQLITE_OK ){ rc = sqlite3_open(":memory:", &pNew->dbm); if( rc==SQLITE_OK ){ - sqlite3_db_config(pNew->dbm, SQLITE_DBCONFIG_FULL_EQP, 1, (int*)0); + sqlite3_db_config(pNew->dbm, SQLITE_DBCONFIG_TRIGGER_EQP, 1, (int*)0); } } |