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

Function recoverBindValue

modules/dasSQLITE/sqlite/shell.c:14011–14021  ·  view source on GitHub ↗

** Bind the value pVal to parameter iBind of statement pStmt. Leave an ** error in the recover handle passed as the first argument if an error ** (e.g. an OOM) occurs. */

Source from the content-addressed store, hash-verified

14009** (e.g. an OOM) occurs.
14010*/
14011static void recoverBindValue(
14012 sqlite3_recover *p,
14013 sqlite3_stmt *pStmt,
14014 int iBind,
14015 sqlite3_value *pVal
14016){
14017 if( p->errCode==SQLITE_OK ){
14018 int rc = sqlite3_bind_value(pStmt, iBind, pVal);
14019 if( rc ) recoverError(p, rc, 0);
14020 }
14021}
14022
14023/*
14024** This function is a no-op if recover handle p already contains an error

Callers 2

recoverWriteDataStepFunction · 0.85

Calls 1

recoverErrorFunction · 0.85

Tested by

no test coverage detected