Fossil SCM
Check for ENABLE_DBSTAT_VTAB feature in stead of SQLite version number before using the dbstat virtual table: It might be that the SQLite version is OK, but it is compiled without ENABLE_DBSTAT_VTAB.
Commit
1a6892aeb7c2484afb142296854bea5c348fa05b
Parent
3967d043e8507f5…
1 file changed
+1
-1
+1
-1
| --- src/stat.c | ||
| +++ src/stat.c | ||
| @@ -78,11 +78,11 @@ | ||
| 78 | 78 | style_submenu_element("Schema", "Repository Schema", "repo_schema"); |
| 79 | 79 | style_submenu_element("Web-Cache", "Web-Cache Stats", "cachestat"); |
| 80 | 80 | } |
| 81 | 81 | style_submenu_element("Activity Reports", 0, "reports"); |
| 82 | 82 | style_submenu_element("SHA1 Collisions", 0, "hash-collisions"); |
| 83 | - if( sqlite3_libversion_number()>=3008010 ){ | |
| 83 | + if( sqlite3_compileoption_used("ENABLE_DBSTAT_VTAB") ){ | |
| 84 | 84 | style_submenu_element("Table Sizes", 0, "repo-tabsize"); |
| 85 | 85 | } |
| 86 | 86 | @ <table class="label-value"> |
| 87 | 87 | @ <tr><th>Repository Size:</th><td> |
| 88 | 88 | fsize = file_size(g.zRepositoryName); |
| 89 | 89 |
| --- src/stat.c | |
| +++ src/stat.c | |
| @@ -78,11 +78,11 @@ | |
| 78 | style_submenu_element("Schema", "Repository Schema", "repo_schema"); |
| 79 | style_submenu_element("Web-Cache", "Web-Cache Stats", "cachestat"); |
| 80 | } |
| 81 | style_submenu_element("Activity Reports", 0, "reports"); |
| 82 | style_submenu_element("SHA1 Collisions", 0, "hash-collisions"); |
| 83 | if( sqlite3_libversion_number()>=3008010 ){ |
| 84 | style_submenu_element("Table Sizes", 0, "repo-tabsize"); |
| 85 | } |
| 86 | @ <table class="label-value"> |
| 87 | @ <tr><th>Repository Size:</th><td> |
| 88 | fsize = file_size(g.zRepositoryName); |
| 89 |
| --- src/stat.c | |
| +++ src/stat.c | |
| @@ -78,11 +78,11 @@ | |
| 78 | style_submenu_element("Schema", "Repository Schema", "repo_schema"); |
| 79 | style_submenu_element("Web-Cache", "Web-Cache Stats", "cachestat"); |
| 80 | } |
| 81 | style_submenu_element("Activity Reports", 0, "reports"); |
| 82 | style_submenu_element("SHA1 Collisions", 0, "hash-collisions"); |
| 83 | if( sqlite3_compileoption_used("ENABLE_DBSTAT_VTAB") ){ |
| 84 | style_submenu_element("Table Sizes", 0, "repo-tabsize"); |
| 85 | } |
| 86 | @ <table class="label-value"> |
| 87 | @ <tr><th>Repository Size:</th><td> |
| 88 | fsize = file_size(g.zRepositoryName); |
| 89 |