Back to index

lightning-sunbird  0.9+nobinonly
experimental.c
Go to the documentation of this file.
00001 /*
00002 ** 2005 January 20
00003 **
00004 ** The author disclaims copyright to this source code.  In place of
00005 ** a legal notice, here is a blessing:
00006 **
00007 **    May you do good and not evil.
00008 **    May you find forgiveness for yourself and forgive others.
00009 **    May you share freely, never taking more than you give.
00010 **
00011 *************************************************************************
00012 ** This file contains C code routines that are not a part of the official
00013 ** SQLite API.  These routines are unsupported.
00014 **
00015 ** $Id: experimental.c,v 1.1.4.2 2006/05/22 19:12:32 brettw%gmail.com Exp $
00016 */
00017 #include "sqliteInt.h"
00018 #include "os.h"
00019 
00020 /*
00021 ** Set all the parameters in the compiled SQL statement to NULL.
00022 */
00023 int sqlite3_clear_bindings(sqlite3_stmt *pStmt){
00024   int i;
00025   int rc = SQLITE_OK;
00026   for(i=1; rc==SQLITE_OK && i<=sqlite3_bind_parameter_count(pStmt); i++){
00027     rc = sqlite3_bind_null(pStmt, i);
00028   }
00029   return rc;
00030 }
00031 
00032 /*
00033 ** Sleep for a little while.  Return the amount of time slept.
00034 */
00035 int sqlite3_sleep(int ms){
00036   return sqlite3OsSleep(ms);
00037 }