Fossil SCM

Fix /tree view in combination with configure --disable-internal-sqlite (Reported by Andy Bradford)

jan.nijtmans 2014-01-02 15:30 UTC pending-review
Commit c3211392dab3c588cefd900d1faba94b45b25fa7
1 file changed +2 -1
+2 -1
--- src/browse.c
+++ src/browse.c
@@ -507,11 +507,12 @@
507507
508508
db_multi_exec(
509509
"CREATE TEMP TABLE filelist("
510510
" x TEXT PRIMARY KEY COLLATE nocase,"
511511
" uuid TEXT"
512
- ") WITHOUT ROWID;"
512
+ ")%s;",
513
+ sqlite3_libversion_number()>=3008002 ? " WITHOUT ROWID" : ""
513514
);
514515
db_prepare(&ins, "INSERT OR IGNORE INTO filelist VALUES(:f,:u)");
515516
manifest_file_rewind(pM);
516517
while( (pFile = manifest_file_next(pM,0))!=0 ){
517518
if( nD>0
518519
--- src/browse.c
+++ src/browse.c
@@ -507,11 +507,12 @@
507
508 db_multi_exec(
509 "CREATE TEMP TABLE filelist("
510 " x TEXT PRIMARY KEY COLLATE nocase,"
511 " uuid TEXT"
512 ") WITHOUT ROWID;"
 
513 );
514 db_prepare(&ins, "INSERT OR IGNORE INTO filelist VALUES(:f,:u)");
515 manifest_file_rewind(pM);
516 while( (pFile = manifest_file_next(pM,0))!=0 ){
517 if( nD>0
518
--- src/browse.c
+++ src/browse.c
@@ -507,11 +507,12 @@
507
508 db_multi_exec(
509 "CREATE TEMP TABLE filelist("
510 " x TEXT PRIMARY KEY COLLATE nocase,"
511 " uuid TEXT"
512 ")%s;",
513 sqlite3_libversion_number()>=3008002 ? " WITHOUT ROWID" : ""
514 );
515 db_prepare(&ins, "INSERT OR IGNORE INTO filelist VALUES(:f,:u)");
516 manifest_file_rewind(pM);
517 while( (pFile = manifest_file_next(pM,0))!=0 ){
518 if( nD>0
519

Keyboard Shortcuts

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