Mozilla/mozilla/db/sqlite3/src/experimental.c
brettw%gmail.com 84a3c37793 Bug 328213, r=vladimir Upgrade to sqlite 3.3.4.
git-svn-id: svn://10.0.0.236/trunk@190874 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-22 20:47:51 +00:00

38 lines
1023 B
C

/*
** 2005 January 20
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
** This file contains C code routines that are not a part of the official
** SQLite API. These routines are unsupported.
**
** $Id: experimental.c,v 1.3 2006-02-22 20:47:51 brettw%gmail.com Exp $
*/
#include "sqliteInt.h"
#include "os.h"
/*
** Set all the parameters in the compiled SQL statement to NULL.
*/
int sqlite3_clear_bindings(sqlite3_stmt *pStmt){
int i;
int rc = SQLITE_OK;
for(i=1; rc==SQLITE_OK && i<=sqlite3_bind_parameter_count(pStmt); i++){
rc = sqlite3_bind_null(pStmt, i);
}
return rc;
}
/*
** Sleep for a little while. Return the amount of time slept.
*/
int sqlite3_sleep(int ms){
return sqlite3OsSleep(ms);
}