diff options
author | shaneh <shaneh@noemail.net> | 2011-03-30 21:03:07 +0000 |
---|---|---|
committer | shaneh <shaneh@noemail.net> | 2011-03-30 21:03:07 +0000 |
commit | ac039688d2b7f6a55b142efba59eea84e4047f34 (patch) | |
tree | 810c81eeea9755c7a88f442a2afc1e8dd8bd3943 /src | |
parent | d50deeeb7ad1279f17d49ef778ac6f2deac87b3e (diff) | |
download | sqlite-ac039688d2b7f6a55b142efba59eea84e4047f34.tar.gz sqlite-ac039688d2b7f6a55b142efba59eea84e4047f34.zip |
Updates to multiplex.test script; misc. bug fixes;
FossilOrigin-Name: c41ff2358e8af0fe2186ab4173b81fba204a57ab
Diffstat (limited to 'src')
-rw-r--r-- | src/test_multiplex.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/test_multiplex.c b/src/test_multiplex.c index 3855050ed..a1768f0c4 100644 --- a/src/test_multiplex.c +++ b/src/test_multiplex.c @@ -25,9 +25,6 @@ #include "sqliteInt.h" #include "test_multiplex.h" -#include "sqlite3ext.h" -SQLITE_EXTENSION_INIT1 - /* ** For a build without mutexes, no-op the mutex calls. */ @@ -216,13 +213,12 @@ static void multiplexControlFunc( ** This is the entry point to register the extension for the multiplex_control() function. */ static int multiplexFuncInit( - sqlite3 *db, - char **pzErrMsg, - const sqlite3_api_routines *pApi + sqlite3 *db ){ - sqlite3_create_function(db, "multiplex_control", 2, SQLITE_ANY, + int rc; + rc = sqlite3_create_function(db, "multiplex_control", 2, SQLITE_ANY, db, multiplexControlFunc, 0, 0); - return 0; + return rc; } /************************* VFS Method Wrappers *****************************/ @@ -686,11 +682,16 @@ static int multiplexFileControl(sqlite3_file *pConn, int op, void *pArg){ } } break; + case SQLITE_FCNTL_SIZE_HINT: + case SQLITE_FCNTL_CHUNK_SIZE: + /* no-op these */ + rc = SQLITE_OK; + break; default: - pSubOpen = multiplexSubOpen(p, 0, &rc, NULL); - if( pSubOpen ){ + pSubOpen = multiplexSubOpen(p, 0, &rc, NULL); + if( pSubOpen ){ rc = pSubOpen->pMethods->xFileControl(pSubOpen, op, pArg); - } + } break; } return rc; |