Tag: vfs

sqlite3 one_file VFS失败

我试图从sqlite3 VFS示例运行test_onefile.c 示例 ,我得到以下失败: test_onefile: test_onefile.c:693: fsDelete: Assertion `strpcmp(“-journal”, &zPath[nName])==0′ failed. 我运行的代码如下: int retval; fs_register(); int q_cnt = 5,q_size = 150,ind = 0; char **queries = (char**) malloc(sizeof(char) * q_cnt * q_size); sqlite3_stmt *stmt; sqlite3 *handle; retval = sqlite3_open_v2( “sampledb.sqlite2”, &handle, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE , “fs”); if(retval) { printf(“Database connection failed\n”); return -1; } printf(“Connection […]