MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / scanStatsHeight

Function scanStatsHeight

modules/dasSQLITE/sqlite/shell.c:18245–18269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18243
18244#ifdef SQLITE_ENABLE_STMT_SCANSTATUS
18245static int scanStatsHeight(sqlite3_stmt *p, int iEntry){
18246 int iPid = 0;
18247 int ret = 1;
18248 sqlite3_stmt_scanstatus_v2(p, iEntry,
18249 SQLITE_SCANSTAT_SELECTID, SQLITE_SCANSTAT_COMPLEX, (void*)&iPid
18250 );
18251 while( iPid!=0 ){
18252 int ii;
18253 for(ii=0; 1; ii++){
18254 int iId;
18255 int res;
18256 res = sqlite3_stmt_scanstatus_v2(p, ii,
18257 SQLITE_SCANSTAT_SELECTID, SQLITE_SCANSTAT_COMPLEX, (void*)&iId
18258 );
18259 if( res ) break;
18260 if( iId==iPid ){
18261 sqlite3_stmt_scanstatus_v2(p, ii,
18262 SQLITE_SCANSTAT_PARENTID, SQLITE_SCANSTAT_COMPLEX, (void*)&iPid
18263 );
18264 }
18265 }
18266 ret++;
18267 }
18268 return ret;
18269}
18270#endif
18271
18272/*

Callers 1

display_scanstatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected