aboutsummaryrefslogtreecommitdiff
path: root/src/pragma.c
diff options
context:
space:
mode:
authordrh <>2023-10-25 10:37:11 +0000
committerdrh <>2023-10-25 10:37:11 +0000
commit9f20bde65a26e13b512ec521421c7b892ad6eadd (patch)
tree7bbba72db4a48670fa3eb5d40537bb8161717bda /src/pragma.c
parentf4154879ebb84fc0875d553e2de60d8ed4864da9 (diff)
downloadsqlite-9f20bde65a26e13b512ec521421c7b892ad6eadd.tar.gz
sqlite-9f20bde65a26e13b512ec521421c7b892ad6eadd.zip
Enhance the new xIntegrity method of the sqlite3_module object with new
parameters that provide the name of the table being checked and a flag to indicate a "quick_check". Based on feedback in [forum:/forumpost/965c0d02ea|forum post 965c0d02ea]. FossilOrigin-Name: bc8afa3f15954bb35f65dbf940bf069de5e14d333036676c24430cf17b658d05
Diffstat (limited to 'src/pragma.c')
-rw-r--r--src/pragma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pragma.c b/src/pragma.c
index d310b83a3..90076b0c2 100644
--- a/src/pragma.c
+++ b/src/pragma.c
@@ -1778,7 +1778,7 @@ void sqlite3Pragma(
if( NEVER(pVTab->pModule==0) ) continue;
if( pVTab->pModule->iVersion<4 ) continue;
if( pVTab->pModule->xIntegrity==0 ) continue;
- sqlite3VdbeAddOp2(v, OP_VCheck, 0, 3);
+ sqlite3VdbeAddOp3(v, OP_VCheck, i, 3, isQuick);
sqlite3VdbeAppendP4(v, pTab, P4_TABLE);
a1 = sqlite3VdbeAddOp1(v, OP_IsNull, 3); VdbeCoverage(v);
integrityCheckResultRow(v);