Fossil SCM

Fix error on "/dir" page: "SQLITE_ERROR: no such table: main.vfile"

joel 2013-04-22 03:50 trunk
Commit d38f204d3b02815ad648988d28d56cfa1958bfe1
1 file changed +4 -2
+4 -2
--- src/add.c
+++ src/add.c
@@ -401,13 +401,15 @@
401401
caseSensitive = 1; /* Unix */
402402
#endif
403403
caseSensitive = db_get_boolean("case-sensitive",caseSensitive);
404404
}
405405
if( !caseSensitive ){
406
+ db_must_be_within_tree();
406407
db_multi_exec(
407
- "CREATE INDEX IF NOT EXISTS vfile_nocase "
408
- " ON vfile(pathname COLLATE nocase)"
408
+ "CREATE INDEX IF NOT EXISTS %s.vfile_nocase "
409
+ " ON vfile(pathname COLLATE nocase)",
410
+ db_name("localdb")
409411
);
410412
}
411413
}
412414
return caseSensitive;
413415
}
414416
--- src/add.c
+++ src/add.c
@@ -401,13 +401,15 @@
401 caseSensitive = 1; /* Unix */
402 #endif
403 caseSensitive = db_get_boolean("case-sensitive",caseSensitive);
404 }
405 if( !caseSensitive ){
 
406 db_multi_exec(
407 "CREATE INDEX IF NOT EXISTS vfile_nocase "
408 " ON vfile(pathname COLLATE nocase)"
 
409 );
410 }
411 }
412 return caseSensitive;
413 }
414
--- src/add.c
+++ src/add.c
@@ -401,13 +401,15 @@
401 caseSensitive = 1; /* Unix */
402 #endif
403 caseSensitive = db_get_boolean("case-sensitive",caseSensitive);
404 }
405 if( !caseSensitive ){
406 db_must_be_within_tree();
407 db_multi_exec(
408 "CREATE INDEX IF NOT EXISTS %s.vfile_nocase "
409 " ON vfile(pathname COLLATE nocase)",
410 db_name("localdb")
411 );
412 }
413 }
414 return caseSensitive;
415 }
416

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button