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

Tcl interface transfers values directly between SQLite and Tcl_Objs, without

at translation to strings. (CVS 1898)

FossilOrigin-Name: e97c331362545ce21117776c7b61d3488668f2bf
This commit is contained in:
drh
2004-08-20 18:34:20 +00:00
parent 895d747226
commit 92febd92ad
29 changed files with 327 additions and 177 deletions

View File

@@ -520,7 +520,8 @@ int sqlite3_bind_text16(
** This routine is added to support DBD::SQLite.
*/
int sqlite3_bind_parameter_count(sqlite3_stmt *pStmt){
return ((Vdbe*)pStmt)->nVar;
Vdbe *p = (Vdbe*)pStmt;
return p ? p->nVar : 0;
}
/*
@@ -531,7 +532,7 @@ int sqlite3_bind_parameter_count(sqlite3_stmt *pStmt){
*/
const char *sqlite3_bind_parameter_name(sqlite3_stmt *pStmt, int i){
Vdbe *p = (Vdbe*)pStmt;
if( i<1 || i>p->nVar ){
if( p==0 || i<1 || i>p->nVar ){
return 0;
}
if( !p->okVar ){