Fossil SCM

Remove two SQLite version checks which no longer serve any purpose

jan.nijtmans 2014-01-21 11:05 trunk
Commit 2864db30806fc5e3bf2a26e19f8cbf8723868f9b
2 files changed +1 -3 +1 -1
+1 -3
--- src/browse.c
+++ src/browse.c
@@ -517,13 +517,11 @@
517517
518518
db_multi_exec(
519519
"CREATE TEMP TABLE filelist("
520520
" x TEXT PRIMARY KEY COLLATE nocase,"
521521
" uuid TEXT"
522
- ")%s;",
523
- /* Can be removed as soon as SQLite 3.8.2 is sufficiently wide-spread */
524
- sqlite3_libversion_number()>=3008002 ? " WITHOUT ROWID" : ""
522
+ ") WITHOUT ROWID;"
525523
);
526524
db_prepare(&ins, "INSERT OR IGNORE INTO filelist VALUES(:f,:u)");
527525
manifest_file_rewind(pM);
528526
while( (pFile = manifest_file_next(pM,0))!=0 ){
529527
if( nD>0
530528
--- src/browse.c
+++ src/browse.c
@@ -517,13 +517,11 @@
517
518 db_multi_exec(
519 "CREATE TEMP TABLE filelist("
520 " x TEXT PRIMARY KEY COLLATE nocase,"
521 " uuid TEXT"
522 ")%s;",
523 /* Can be removed as soon as SQLite 3.8.2 is sufficiently wide-spread */
524 sqlite3_libversion_number()>=3008002 ? " WITHOUT ROWID" : ""
525 );
526 db_prepare(&ins, "INSERT OR IGNORE INTO filelist VALUES(:f,:u)");
527 manifest_file_rewind(pM);
528 while( (pFile = manifest_file_next(pM,0))!=0 ){
529 if( nD>0
530
--- src/browse.c
+++ src/browse.c
@@ -517,13 +517,11 @@
517
518 db_multi_exec(
519 "CREATE TEMP TABLE filelist("
520 " x TEXT PRIMARY KEY COLLATE nocase,"
521 " uuid TEXT"
522 ") WITHOUT ROWID;"
 
 
523 );
524 db_prepare(&ins, "INSERT OR IGNORE INTO filelist VALUES(:f,:u)");
525 manifest_file_rewind(pM);
526 while( (pFile = manifest_file_next(pM,0))!=0 ){
527 if( nD>0
528
+1 -1
--- src/main.c
+++ src/main.c
@@ -601,11 +601,11 @@
601601
g.mainTimerId = fossil_timer_start();
602602
g.zVfsName = find_option("vfs",0,1);
603603
if( g.zVfsName==0 ){
604604
g.zVfsName = fossil_getenv("FOSSIL_VFS");
605605
#if defined(__CYGWIN__)
606
- if( g.zVfsName==0 && sqlite3_libversion_number()>=3008001 ){
606
+ if( g.zVfsName==0 ){
607607
g.zVfsName = "win32-longpath";
608608
}
609609
#endif
610610
}
611611
if( g.zVfsName ){
612612
--- src/main.c
+++ src/main.c
@@ -601,11 +601,11 @@
601 g.mainTimerId = fossil_timer_start();
602 g.zVfsName = find_option("vfs",0,1);
603 if( g.zVfsName==0 ){
604 g.zVfsName = fossil_getenv("FOSSIL_VFS");
605 #if defined(__CYGWIN__)
606 if( g.zVfsName==0 && sqlite3_libversion_number()>=3008001 ){
607 g.zVfsName = "win32-longpath";
608 }
609 #endif
610 }
611 if( g.zVfsName ){
612
--- src/main.c
+++ src/main.c
@@ -601,11 +601,11 @@
601 g.mainTimerId = fossil_timer_start();
602 g.zVfsName = find_option("vfs",0,1);
603 if( g.zVfsName==0 ){
604 g.zVfsName = fossil_getenv("FOSSIL_VFS");
605 #if defined(__CYGWIN__)
606 if( g.zVfsName==0 ){
607 g.zVfsName = "win32-longpath";
608 }
609 #endif
610 }
611 if( g.zVfsName ){
612

Keyboard Shortcuts

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