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

Add xUpdate method to the echo test module. Currently untested. (CVS 3246)

FossilOrigin-Name: 676de55b28f0b22cf78f5e71f4a960f3d76c2d72
This commit is contained in:
danielk1977
2006-06-14 15:16:35 +00:00
parent 03a37ca4ff
commit 26e4144d64
4 changed files with 93 additions and 10 deletions

View File

@@ -711,6 +711,15 @@ int sqlite3_bind_text16(
return bindText(pStmt, i, zData, nData, xDel, SQLITE_UTF16NATIVE);
}
#endif /* SQLITE_OMIT_UTF16 */
int sqlite3_bind_value(sqlite3_stmt *pStmt, int i, const sqlite3_value *pValue){
int rc;
Vdbe *p = (Vdbe *)pStmt;
rc = vdbeUnbind(p, i);
if( rc==SQLITE_OK ){
sqlite3VdbeMemCopy(&p->aVar[i-1], pValue);
}
return rc;
}
/*
** Return the number of wildcards that can be potentially bound to.