Fossil SCM

Restore special handling of the database name from [17885b90c8] in filenames_are_case_sensitive() as it may be needed in some cases.

mistachkin 2014-09-15 01:54 UTC trunk
Commit 42b97c229664fefe9538fa99be3c4621b8a29d44
1 file changed +3 -2
+3 -2
--- src/add.c
+++ src/add.c
@@ -445,12 +445,13 @@
445445
#endif
446446
caseSensitive = db_get_boolean("case-sensitive",caseSensitive);
447447
}
448448
if( !caseSensitive && g.localOpen ){
449449
db_multi_exec(
450
- "CREATE INDEX IF NOT EXISTS vfile_nocase"
451
- " ON vfile(pathname COLLATE nocase)"
450
+ "CREATE INDEX IF NOT EXISTS %s.vfile_nocase"
451
+ " ON vfile(pathname COLLATE nocase)",
452
+ db_name("localdb")
452453
);
453454
}
454455
}
455456
return caseSensitive;
456457
}
457458
--- src/add.c
+++ src/add.c
@@ -445,12 +445,13 @@
445 #endif
446 caseSensitive = db_get_boolean("case-sensitive",caseSensitive);
447 }
448 if( !caseSensitive && g.localOpen ){
449 db_multi_exec(
450 "CREATE INDEX IF NOT EXISTS vfile_nocase"
451 " ON vfile(pathname COLLATE nocase)"
 
452 );
453 }
454 }
455 return caseSensitive;
456 }
457
--- src/add.c
+++ src/add.c
@@ -445,12 +445,13 @@
445 #endif
446 caseSensitive = db_get_boolean("case-sensitive",caseSensitive);
447 }
448 if( !caseSensitive && g.localOpen ){
449 db_multi_exec(
450 "CREATE INDEX IF NOT EXISTS %s.vfile_nocase"
451 " ON vfile(pathname COLLATE nocase)",
452 db_name("localdb")
453 );
454 }
455 }
456 return caseSensitive;
457 }
458

Keyboard Shortcuts

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