diff options
author | drh <drh@noemail.net> | 2016-02-25 21:19:03 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-02-25 21:19:03 +0000 |
commit | d566c95179c41be3ae89e32636f4de428d3cdeb7 (patch) | |
tree | 93ac906fdebd58802f08e048bbeb07a976e21642 /src/util.c | |
parent | aa9ffaba4af5949feed95660523cae0d5c30c755 (diff) | |
download | sqlite-d566c95179c41be3ae89e32636f4de428d3cdeb7.tar.gz sqlite-d566c95179c41be3ae89e32636f4de428d3cdeb7.zip |
Change the "PRAGMA stats" command to report size values in LogEst units.
The eliminates the need for sqlite3LogEstToInt() unless non-standard
compile-time options are used, so leave it out except in those cases.
FossilOrigin-Name: 832c237fcbe83dd4f5a18a06acb0aeb7e2b9e712
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c index e325a7311..d00a739e5 100644 --- a/src/util.c +++ b/src/util.c @@ -1400,8 +1400,14 @@ LogEst sqlite3LogEstFromDouble(double x){ } #endif /* SQLITE_OMIT_VIRTUALTABLE */ +#if defined(SQLITE_ENABLE_STMT_SCANSTAT) || \ + defined(SQLITE_ENABLE_STAT3_OR_STAT4) || \ + defined(SQLITE_EXPLAIN_ESTIMATED_ROWS) /* ** Convert a LogEst into an integer. +** +** Note that this routine is only used when one or more of various +** non-standard compile-time options is enabled. */ u64 sqlite3LogEstToInt(LogEst x){ u64 n; @@ -1415,3 +1421,4 @@ u64 sqlite3LogEstToInt(LogEst x){ } return (n+8)>>(3-x); } +#endif /* defined SCANSTAT or STAT4 or ESTIMATED_ROWS */ |