Fossil SCM

Make "WITHOUT ROWID" unconditional

jan.nijtmans 2014-01-07 20:32 UTC sqliteRuntimeCheck
Commit eb87f296378d177cc1018e13028dad1e3c90e8cf
1 file changed +1 -3
+1 -3
--- src/browse.c
+++ src/browse.c
@@ -494,13 +494,11 @@
494494
495495
db_multi_exec(
496496
"CREATE TEMP TABLE filelist("
497497
" x TEXT PRIMARY KEY COLLATE nocase,"
498498
" uuid TEXT"
499
- ")%s;",
500
- /* Can be removed as soon as SQLite 3.8.2 is sufficiently wide-spread */
501
- sqlite3_libversion_number()>=3008002 ? " WITHOUT ROWID" : ""
499
+ ") WITHOUT ROWID;"
502500
);
503501
db_prepare(&ins, "INSERT OR IGNORE INTO filelist VALUES(:f,:u)");
504502
manifest_file_rewind(pM);
505503
while( (pFile = manifest_file_next(pM,0))!=0 ){
506504
if( nD>0
507505
--- src/browse.c
+++ src/browse.c
@@ -494,13 +494,11 @@
494
495 db_multi_exec(
496 "CREATE TEMP TABLE filelist("
497 " x TEXT PRIMARY KEY COLLATE nocase,"
498 " uuid TEXT"
499 ")%s;",
500 /* Can be removed as soon as SQLite 3.8.2 is sufficiently wide-spread */
501 sqlite3_libversion_number()>=3008002 ? " WITHOUT ROWID" : ""
502 );
503 db_prepare(&ins, "INSERT OR IGNORE INTO filelist VALUES(:f,:u)");
504 manifest_file_rewind(pM);
505 while( (pFile = manifest_file_next(pM,0))!=0 ){
506 if( nD>0
507
--- src/browse.c
+++ src/browse.c
@@ -494,13 +494,11 @@
494
495 db_multi_exec(
496 "CREATE TEMP TABLE filelist("
497 " x TEXT PRIMARY KEY COLLATE nocase,"
498 " uuid TEXT"
499 ") WITHOUT ROWID;"
 
 
500 );
501 db_prepare(&ins, "INSERT OR IGNORE INTO filelist VALUES(:f,:u)");
502 manifest_file_rewind(pM);
503 while( (pFile = manifest_file_next(pM,0))!=0 ){
504 if( nD>0
505

Keyboard Shortcuts

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