Fossil

Check-in [dfc3dfa59c]
Login

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

Overview
Comment:Minor adjustment to some SQL.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | mvAndRmFiles
Files: files | file ages | folders
SHA1: dfc3dfa59cae37cd6ee6e80e723c7f075a3ed2c8
User & Date: mistachkin 2015-02-05 03:55:06.143
Context
2015-02-05
04:35
Emit diagnostic messages after the file operations have been done, not before. ... (check-in: 1dad8acaa2 user: mistachkin tags: mvAndRmFiles)
03:55
Minor adjustment to some SQL. ... (check-in: dfc3dfa59c user: mistachkin tags: mvAndRmFiles)
03:53
Merge updates from trunk. ... (check-in: 3766e0e833 user: mistachkin tags: mvAndRmFiles)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/add.c.
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
      "UPDATE vfile SET pathname='%q' WHERE pathname='%q' %s AND vid=%d",
      zNew, zOrig, filename_collation(), vid
    );
  }
}

static void init_files_to_move(){
  db_multi_exec("CREATE TEMP TABLE IF NOT EXISTS "
                "fmove(x TEXT PRIMARY KEY %s, y TEXT %s)",
                filename_collation(), filename_collation());
}

static void add_file_to_move(
  const char *zOldName, /* The old name of the file on disk. */
  const char *zNewName  /* The new name of the file on disk. */
){







|
<







654
655
656
657
658
659
660
661

662
663
664
665
666
667
668
      "UPDATE vfile SET pathname='%q' WHERE pathname='%q' %s AND vid=%d",
      zNew, zOrig, filename_collation(), vid
    );
  }
}

static void init_files_to_move(){
  db_multi_exec("CREATE TEMP TABLE fmove(x TEXT PRIMARY KEY %s, y TEXT %s)",

                filename_collation(), filename_collation());
}

static void add_file_to_move(
  const char *zOldName, /* The old name of the file on disk. */
  const char *zNewName  /* The new name of the file on disk. */
){