Fossil SCM

Make "fossil version -v" work again with SQLite 3.15.x, since no-where is documented that "fossil now requires SQLite 3.16"

jan.nijtmans 2017-01-27 12:21 trunk
Commit 042d6a7b98170df13b20d1c7136e7635acce5fb4
1 file changed +5 -3
+5 -3
--- src/main.c
+++ src/main.c
@@ -993,14 +993,16 @@
993993
#endif
994994
blob_appendf(pOut, "SQLite %s %.30s\n", sqlite3_libversion(),
995995
sqlite3_sourceid());
996996
if( g.db==0 ) sqlite3_open(":memory:", &g.db);
997997
db_prepare(&q,
998
- "SELECT compile_options FROM pragma_compile_options"
999
- " WHERE compile_options NOT LIKE 'COMPILER=%%'");
998
+ "pragma compile_options");
1000999
while( db_step(&q)==SQLITE_ROW ){
1001
- blob_appendf(pOut, "SQLITE_%s\n", db_column_text(&q, 0));
1000
+ const char *text = db_column_text(&q, 0);
1001
+ if( strncmp(text, "COMPILER", 8) ){
1002
+ blob_appendf(pOut, "SQLITE_%s\n", text);
1003
+ }
10021004
}
10031005
db_finalize(&q);
10041006
}
10051007
10061008
/*
10071009
--- src/main.c
+++ src/main.c
@@ -993,14 +993,16 @@
993 #endif
994 blob_appendf(pOut, "SQLite %s %.30s\n", sqlite3_libversion(),
995 sqlite3_sourceid());
996 if( g.db==0 ) sqlite3_open(":memory:", &g.db);
997 db_prepare(&q,
998 "SELECT compile_options FROM pragma_compile_options"
999 " WHERE compile_options NOT LIKE 'COMPILER=%%'");
1000 while( db_step(&q)==SQLITE_ROW ){
1001 blob_appendf(pOut, "SQLITE_%s\n", db_column_text(&q, 0));
 
 
 
1002 }
1003 db_finalize(&q);
1004 }
1005
1006 /*
1007
--- src/main.c
+++ src/main.c
@@ -993,14 +993,16 @@
993 #endif
994 blob_appendf(pOut, "SQLite %s %.30s\n", sqlite3_libversion(),
995 sqlite3_sourceid());
996 if( g.db==0 ) sqlite3_open(":memory:", &g.db);
997 db_prepare(&q,
998 "pragma compile_options");
 
999 while( db_step(&q)==SQLITE_ROW ){
1000 const char *text = db_column_text(&q, 0);
1001 if( strncmp(text, "COMPILER", 8) ){
1002 blob_appendf(pOut, "SQLITE_%s\n", text);
1003 }
1004 }
1005 db_finalize(&q);
1006 }
1007
1008 /*
1009

Keyboard Shortcuts

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