1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Add the SQLITE_SCANSTAT_SELECTID metric. Use it to improve the

".stmtscan on" output in the shell.

FossilOrigin-Name: 64ad5761a841f71530d41565b9fbe9d19c2d6aff
This commit is contained in:
drh
2014-11-06 04:42:20 +00:00
parent 518140ed04
commit c6652b1efe
6 changed files with 46 additions and 20 deletions

View File

@@ -1521,6 +1521,14 @@ int sqlite3_stmt_scanstatus(
}
break;
}
case SQLITE_SCANSTAT_SELECTID: {
if( pScan->addrExplain ){
*(int*)pOut = p->aOp[ pScan->addrExplain ].p1;
}else{
*(int*)pOut = -1;
}
break;
}
default: {
return 1;
}