Fossil

Check-in [fe7ac393]
Login

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

Overview
Comment:Repair completely bogus sql that was erroneously copy/pasted
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | betterExeHandling
Files: files | file ages | folders
SHA1: fe7ac3931ac09a03180702ef225fffc0459d9016
User & Date: bharder 2011-04-04 01:48:00
Context
2011-04-04
01:56
ws change to capture chmod +x change Leaf check-in: 5a587ba5 user: bharder tags: betterExeHandling
01:48
Repair completely bogus sql that was erroneously copy/pasted check-in: fe7ac393 user: bharder tags: betterExeHandling
01:14
"fossil chan" will recognize addition of exe-bit check-in: d55e797a user: bharder tags: betterExeHandling
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/vfile.c.

123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/*
** Poll db for current exe-status of a file.
*/
static int test_isexe(const char *zFilename, int vid){
  static Stmt s;
  int isexe;
  db_static_prepare(&s,
    "UPDATE vfile SET isexe=:isexe"
    " WHERE vid=:vid AND pathname=:path AND isexe!=:isexe"
  );
  db_bind_int(&s, ":vid", vid);
  db_bind_text(&s, ":path", zFilename);
  db_step(&s);
  isexe = db_column_int(&s, 0);
  db_reset(&s);








|
|







123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/*
** Poll db for current exe-status of a file.
*/
static int test_isexe(const char *zFilename, int vid){
  static Stmt s;
  int isexe;
  db_static_prepare(&s,
    "SELECT isexe"
    " FROM vfile where vid=:vid AND pathname=:path"
  );
  db_bind_int(&s, ":vid", vid);
  db_bind_text(&s, ":path", zFilename);
  db_step(&s);
  isexe = db_column_int(&s, 0);
  db_reset(&s);