Fossil

Check-in [d97a4cdf]
Login

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

Overview
Comment:On windows, use COLLATE NOCASE instead of LIKE to do case insensitive comparisons - to avoid issues with wildcards. Ticket [80d3ba8b0ff].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d97a4cdf8dce617efde281f5a265e53b41910bd4
User & Date: drh 2010-03-02 18:20:31
Context
2010-03-03
03:34
Add a hyperlink on branch tags of the info display that carries the user to a timeline of the branch. check-in: 732e3db3 user: drh tags: trunk
2010-03-02
18:20
On windows, use COLLATE NOCASE instead of LIKE to do case insensitive comparisons - to avoid issues with wildcards. Ticket [80d3ba8b0ff]. check-in: d97a4cdf user: drh tags: trunk
2010-03-01
00:54
Update the how-to-build documentation in the BUILD.txt file at the root of the source tree. check-in: 355d37ca user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/add.c.

51
52
53
54
55
56
57
58

59

60
61
62
63
64
65
66
  ){
    fossil_warning("cannot add %s", zPath);
  }else{
    if( !file_is_simple_pathname(zPath) ){
      fossil_fatal("filename contains illegal characters: %s", zPath);
    }
#ifdef __MINGW32__
    if( db_exists("SELECT 1 FROM vfile WHERE pathname LIKE %Q", zPath) ){

      db_multi_exec("UPDATE vfile SET deleted=0 WHERE pathname LIKE %Q", zPath);

    }
#else
    if( db_exists("SELECT 1 FROM vfile WHERE pathname=%Q", zPath) ){
      db_multi_exec("UPDATE vfile SET deleted=0 WHERE pathname=%Q", zPath);
    }
#endif
    else{







|
>
|
>







51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
  ){
    fossil_warning("cannot add %s", zPath);
  }else{
    if( !file_is_simple_pathname(zPath) ){
      fossil_fatal("filename contains illegal characters: %s", zPath);
    }
#ifdef __MINGW32__
    if( db_exists("SELECT 1 FROM vfile"
                  " WHERE pathname=%Q COLLATE nocase", zPath) ){
      db_multi_exec("UPDATE vfile SET deleted=0"
                    " WHERE pathname=%Q COLLATE nocase", zPath);
    }
#else
    if( db_exists("SELECT 1 FROM vfile WHERE pathname=%Q", zPath) ){
      db_multi_exec("UPDATE vfile SET deleted=0 WHERE pathname=%Q", zPath);
    }
#endif
    else{