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"
Commit
042d6a7b98170df13b20d1c7136e7635acce5fb4
Parent
8cb5da6f27ebacd…
1 file changed
+5
-3
+5
-3
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -993,14 +993,16 @@ | ||
| 993 | 993 | #endif |
| 994 | 994 | blob_appendf(pOut, "SQLite %s %.30s\n", sqlite3_libversion(), |
| 995 | 995 | sqlite3_sourceid()); |
| 996 | 996 | if( g.db==0 ) sqlite3_open(":memory:", &g.db); |
| 997 | 997 | db_prepare(&q, |
| 998 | - "SELECT compile_options FROM pragma_compile_options" | |
| 999 | - " WHERE compile_options NOT LIKE 'COMPILER=%%'"); | |
| 998 | + "pragma compile_options"); | |
| 1000 | 999 | 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 | + } | |
| 1002 | 1004 | } |
| 1003 | 1005 | db_finalize(&q); |
| 1004 | 1006 | } |
| 1005 | 1007 | |
| 1006 | 1008 | /* |
| 1007 | 1009 |
| --- 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 |