1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Test cases for sqlite3_db_config() and sqlite3_db_status(). (CVS 5518)

FossilOrigin-Name: 6a6b94302acdfe6404b04bff1cc8d16c1ef69df9
This commit is contained in:
drh
2008-08-01 16:31:14 +00:00
parent e2a7c6e04f
commit 6480aad473
7 changed files with 148 additions and 19 deletions

View File

@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
** $Id: main.c,v 1.483 2008/07/28 19:34:53 drh Exp $
** $Id: main.c,v 1.484 2008/08/01 16:31:14 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -330,7 +330,7 @@ static int setupLookaside(sqlite3 *db, int sz, int cnt){
*/
int sqlite3_db_config(sqlite3 *db, int op, ...){
va_list ap;
int rc = SQLITE_OK;
int rc;
va_start(ap, op);
switch( op ){
case SQLITE_CONFIG_LOOKASIDE: {
@@ -339,6 +339,10 @@ int sqlite3_db_config(sqlite3 *db, int op, ...){
rc = setupLookaside(db, sz, cnt);
break;
}
default: {
rc = SQLITE_ERROR;
break;
}
}
va_end(ap);
return rc;