Fossil

Check-in [6b0196aeb8]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:The FOSSIL_VFS environment variable, if it exists, determines which SQLite VFS is used. Use "export FOSSIL_VFS=unix-none" or "export FOSSIL_VFS=unix-dotfile" to work-around non-posix filesystems such as AFS on unix systems.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6b0196aeb874fe5f5d2f0dd5dcbb24e82b1f0cc7
User & Date: drh 2009-08-09 17:29:25.000
References
2009-08-15
21:41 Ticket [c7c36ef52e] recent fossil on non English variant of winXP fails to create new repo status still Open with 2 other changes artifact: 99b8395b94 user: drh
21:12 New ticket [c7c36ef52e]. artifact: ffcca36d9c user: anonymous
Context
2009-08-09
21:32
adjust "extra" command to "extras" (i.e. "Show me the extras"). Still works with "extra" as before, due to unambiguous command-completion. check-in: 554d896209 user: bch tags: trunk
17:29
The FOSSIL_VFS environment variable, if it exists, determines which SQLite VFS is used. Use "export FOSSIL_VFS=unix-none" or "export FOSSIL_VFS=unix-dotfile" to work-around non-posix filesystems such as AFS on unix systems. check-in: 6b0196aeb8 user: drh tags: trunk
2009-08-08
22:40
Provide --user-override option on the ci command and the --date-override option on the new command. Make a correction to the file format document. check-in: 8b630bb57a user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
627
628
629
630
631
632
633




634




635
636
637
638
639
640
641
** already open, then attach zDbName using the name zLabel.
*/
void db_open_or_attach(const char *zDbName, const char *zLabel){
#ifdef __MINGW32__
  zDbName = mbcsToUtf8(zDbName);
#endif
  if( !g.db ){




    int rc = sqlite3_open(zDbName, &g.db);




    if( rc!=SQLITE_OK ){
      db_err(sqlite3_errmsg(g.db));
    }
    sqlite3_busy_timeout(g.db, 5000);
    db_connection_init();
  }else{
    db_multi_exec("ATTACH DATABASE %Q AS %s", zDbName, zLabel);







>
>
>
>
|
>
>
>
>







627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
** already open, then attach zDbName using the name zLabel.
*/
void db_open_or_attach(const char *zDbName, const char *zLabel){
#ifdef __MINGW32__
  zDbName = mbcsToUtf8(zDbName);
#endif
  if( !g.db ){
    int rc;
    const char *zVfs;

    zVfs = getenv("FOSSIL_VFS");
    rc = sqlite3_open_v2(
         zDbName, &g.db,
         SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
         zVfs
    );
    if( rc!=SQLITE_OK ){
      db_err(sqlite3_errmsg(g.db));
    }
    sqlite3_busy_timeout(g.db, 5000);
    db_connection_init();
  }else{
    db_multi_exec("ATTACH DATABASE %Q AS %s", zDbName, zLabel);