Fossil

Check-in [be956c3c]
Login

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

Overview
Comment:Fix SQL syntax error in undo.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | symlinks
Files: files | file ages | folders
SHA1: be956c3c88fd5b7225a5714443ba840f2518f10d
User & Date: dmitry 2011-08-27 00:52:21
Context
2011-08-27
01:07
Add islink column to stashfile, undo, undo_vfile tables if needed. check-in: 44e673f5 user: dmitry tags: symlinks
00:52
Fix SQL syntax error in undo. check-in: be956c3c user: dmitry tags: symlinks
2011-08-26
14:59
Merge the latest trunk changes into the symlinks branch. check-in: 24c16584 user: drh tags: symlinks
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/undo.c.

85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
      fossil_print("DELETE %s\n", zPathname);
      file_delete(zFullname);
    }
    blob_reset(&new);
    free(zFullname);
    db_finalize(&q);
    db_prepare(&q, 
       "UPDATE undo SET content=:c, existsflag=%d, isExe=%d, isLink=%d"
             " redoflag=NOT redoflag"
       " WHERE pathname=%Q",
       new_exists, new_exe, new_link, zPathname
    );
    if( new_exists ){
      db_bind_blob(&q, ":c", &current);
    }







|







85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
      fossil_print("DELETE %s\n", zPathname);
      file_delete(zFullname);
    }
    blob_reset(&new);
    free(zFullname);
    db_finalize(&q);
    db_prepare(&q, 
       "UPDATE undo SET content=:c, existsflag=%d, isExe=%d, isLink=%d,"
             " redoflag=NOT redoflag"
       " WHERE pathname=%Q",
       new_exists, new_exe, new_link, zPathname
    );
    if( new_exists ){
      db_bind_blob(&q, ":c", &current);
    }