Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix up test_osinst.c to work with SQLITE_OMIT_VIRTUALTABLE. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
51fd38152b92db637d1d346fca35ec2d |
User & Date: | drh 2010-05-24 12:34:15.000 |
Context
2010-05-24
| ||
13:28 | Make sure a WAL frame of all zeros is detected as an invalid frame. (check-in: 02d99ad4b5 user: drh tags: trunk) | |
12:34 | Fix up test_osinst.c to work with SQLITE_OMIT_VIRTUALTABLE. (check-in: 51fd38152b user: drh tags: trunk) | |
10:39 | Change the WAL file format to support two kinds of checksums - one that is fast to calculate on little-endian architectures and another that is fast on big-endian architectures. A flag in the wal-header indicates which the file uses. (check-in: 65ba804dd1 user: dan tags: trunk) | |
Changes
Changes to src/test_osinst.c.
︙ | ︙ | |||
873 874 875 876 877 878 879 880 881 882 883 884 885 886 | z[iOut++] = z[iIn++]; } } z[iOut] = '\0'; } } /* ** Connect to or create a vfslog virtual table. */ static int vlogConnect( sqlite3 *db, void *pAux, int argc, const char *const*argv, | > | 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 | z[iOut++] = z[iIn++]; } } z[iOut] = '\0'; } } #ifndef SQLITE_OMIT_VIRTUALTABLE /* ** Connect to or create a vfslog virtual table. */ static int vlogConnect( sqlite3 *db, void *pAux, int argc, const char *const*argv, |
︙ | ︙ | |||
1111 1112 1113 1114 1115 1116 1117 | 0, /* xFindMethod */ 0, /* xRename */ }; sqlite3_create_module(db, "vfslog", &vfslog_module, 0); return SQLITE_OK; } | | | 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 | 0, /* xFindMethod */ 0, /* xRename */ }; sqlite3_create_module(db, "vfslog", &vfslog_module, 0); return SQLITE_OK; } #endif /* SQLITE_OMIT_VIRTUALTABLE */ /************************************************************************** *************************************************************************** ** Tcl interface starts here. */ #if defined(SQLITE_TEST) || defined(TCLSH) |
︙ | ︙ | |||
1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 | case VL_REGISTER: { char *zDb; if( objc!=3 ){ Tcl_WrongNumArgs(interp, 2, objv, "DB"); return TCL_ERROR; } zDb = Tcl_GetString(objv[2]); if( Tcl_GetCommandInfo(interp, zDb, &cmdInfo) ){ db = ((struct SqliteDb*)cmdInfo.objClientData)->db; rc = sqlite3_vfslog_register(db); } if( rc!=SQLITE_OK ){ | > > > > > | < > > | 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 | case VL_REGISTER: { char *zDb; if( objc!=3 ){ Tcl_WrongNumArgs(interp, 2, objv, "DB"); return TCL_ERROR; } #ifdef SQLITE_OMIT_VIRTUALTABLE Tcl_AppendResult(interp, "vfslog not available because of " "SQLITE_OMIT_VIRTUALTABLE", (void*)0); return TCL_ERROR; #else zDb = Tcl_GetString(objv[2]); if( Tcl_GetCommandInfo(interp, zDb, &cmdInfo) ){ db = ((struct SqliteDb*)cmdInfo.objClientData)->db; rc = sqlite3_vfslog_register(db); } if( rc!=SQLITE_OK ){ Tcl_AppendResult(interp, "bad sqlite3 handle: ", zDb, (void*)0); return TCL_ERROR; } break; #endif } } return TCL_OK; } int SqlitetestOsinst_Init(Tcl_Interp *interp){ Tcl_CreateObjCommand(interp, "vfslog", test_vfslog, 0, 0); return TCL_OK; } #endif /* SQLITE_TEST */ |