mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Further progress on migration to sqlite3_vfs. (CVS 4242)
FossilOrigin-Name: a258c4ec240f96bccfe493e98d0827ec7dd12e67
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
** is not included in the SQLite library. It is used for automated
|
||||
** testing of the SQLite library.
|
||||
**
|
||||
** $Id: test2.c,v 1.46 2007/08/17 15:53:37 danielk1977 Exp $
|
||||
** $Id: test2.c,v 1.47 2007/08/18 10:59:21 danielk1977 Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include "os.h"
|
||||
@@ -530,7 +530,6 @@ static int fake_big_file(
|
||||
){
|
||||
sqlite3_vfs *pVfs;
|
||||
sqlite3_file *fd = 0;
|
||||
int flags = SQLITE_OPEN_CREATE|SQLITE_OPEN_READWRITE;
|
||||
int rc;
|
||||
int n;
|
||||
i64 offset;
|
||||
@@ -542,7 +541,9 @@ static int fake_big_file(
|
||||
if( Tcl_GetInt(interp, argv[1], &n) ) return TCL_ERROR;
|
||||
|
||||
pVfs = sqlite3_find_vfs(0);
|
||||
rc = sqlite3OsOpenMalloc(pVfs, argv[2], &fd, flags);
|
||||
rc = sqlite3OsOpenMalloc(pVfs, argv[2], &fd,
|
||||
(SQLITE_OPEN_CREATE|SQLITE_OPEN_READWRITE|SQLITE_OPEN_MAIN_DB)
|
||||
);
|
||||
if( rc ){
|
||||
Tcl_AppendResult(interp, "open failed: ", errorName(rc), 0);
|
||||
return TCL_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user