Mercurial > audlegacy
comparison sqlite/experimental.c @ 1434:b6b61becdf4e trunk
[svn] - add sqlite/ directory
| author | nenolod |
|---|---|
| date | Thu, 27 Jul 2006 22:41:31 -0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1433:3cbe3d14ea68 | 1434:b6b61becdf4e |
|---|---|
| 1 /* | |
| 2 ** 2005 January 20 | |
| 3 ** | |
| 4 ** The author disclaims copyright to this source code. In place of | |
| 5 ** a legal notice, here is a blessing: | |
| 6 ** | |
| 7 ** May you do good and not evil. | |
| 8 ** May you find forgiveness for yourself and forgive others. | |
| 9 ** May you share freely, never taking more than you give. | |
| 10 ** | |
| 11 ************************************************************************* | |
| 12 ** This file contains C code routines that are not a part of the official | |
| 13 ** SQLite API. These routines are unsupported. | |
| 14 ** | |
| 15 ** $Id: experimental.c,v 1.4 2006/01/31 20:49:13 drh Exp $ | |
| 16 */ | |
| 17 #include "sqliteInt.h" | |
| 18 #include "os.h" | |
| 19 | |
| 20 /* | |
| 21 ** Set all the parameters in the compiled SQL statement to NULL. | |
| 22 */ | |
| 23 int sqlite3_clear_bindings(sqlite3_stmt *pStmt){ | |
| 24 int i; | |
| 25 int rc = SQLITE_OK; | |
| 26 for(i=1; rc==SQLITE_OK && i<=sqlite3_bind_parameter_count(pStmt); i++){ | |
| 27 rc = sqlite3_bind_null(pStmt, i); | |
| 28 } | |
| 29 return rc; | |
| 30 } | |
| 31 | |
| 32 /* | |
| 33 ** Sleep for a little while. Return the amount of time slept. | |
| 34 */ | |
| 35 int sqlite3_sleep(int ms){ | |
| 36 return sqlite3OsSleep(ms); | |
| 37 } |
