diff options
Diffstat (limited to 'src/test_bestindex.c')
-rw-r--r-- | src/test_bestindex.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test_bestindex.c b/src/test_bestindex.c index 0e1e86a81..072bff2e7 100644 --- a/src/test_bestindex.c +++ b/src/test_bestindex.c @@ -700,6 +700,10 @@ static int tclBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){ pIdxInfo->aConstraintUsage[iCons].omit = bOmit; } } + }else + if( sqlite3_stricmp("constraint", zCmd)==0 ){ + rc = SQLITE_CONSTRAINT; + pTab->base.zErrMsg = sqlite3_mprintf("%s", Tcl_GetString(p)); }else{ rc = SQLITE_ERROR; pTab->base.zErrMsg = sqlite3_mprintf("unexpected: %s", zCmd); |