aboutsummaryrefslogtreecommitdiff
path: root/src/test_multiplex.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-12-14 18:28:18 +0000
committerdrh <drh@noemail.net>2011-12-14 18:28:18 +0000
commit0f2ab8db33f82743ea49b5b11e5f10a8923ed6fb (patch)
treeba23ebb1b6eaca6ab90ac982ba96de63acc183f1 /src/test_multiplex.c
parent43a6d4bd4434ef62572c98264aaaf4d01b71c4ac (diff)
parentde60fc2d87a9483cfc1e60ca04381dc07079920b (diff)
downloadsqlite-0f2ab8db33f82743ea49b5b11e5f10a8923ed6fb.tar.gz
sqlite-0f2ab8db33f82743ea49b5b11e5f10a8923ed6fb.zip
Merge the VFSNAME file-control addition into the nx-devkit branch.
FossilOrigin-Name: 08c1dc517c1340737a55ad9012b7b06f72899c6f
Diffstat (limited to 'src/test_multiplex.c')
-rw-r--r--src/test_multiplex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test_multiplex.c b/src/test_multiplex.c
index c4aeca81b..f6540d82d 100644
--- a/src/test_multiplex.c
+++ b/src/test_multiplex.c
@@ -856,6 +856,9 @@ static int multiplexFileControl(sqlite3_file *pConn, int op, void *pArg){
pSubOpen = multiplexSubOpen(pGroup, 0, &rc, NULL);
if( pSubOpen ){
rc = pSubOpen->pMethods->xFileControl(pSubOpen, op, pArg);
+ if( op==SQLITE_FCNTL_VFSNAME && rc==SQLITE_OK ){
+ *(char**)pArg = sqlite3_mprintf("multiplex/%z", *(char**)pArg);
+ }
}
break;
}