diff options
author | drh <drh@noemail.net> | 2014-10-25 13:42:16 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-10-25 13:42:16 +0000 |
commit | d05ab6aacf08a1fd7af581cae4b28390ecd5c44c (patch) | |
tree | a0d6853758bf5745ff18c58bd46a650c12c0cf1c /src/where.c | |
parent | 051575cbf4c47fc472f53146e30d6ddddc9054b3 (diff) | |
download | sqlite-d05ab6aacf08a1fd7af581cae4b28390ecd5c44c.tar.gz sqlite-d05ab6aacf08a1fd7af581cae4b28390ecd5c44c.zip |
Increase the resolution of the second parameter to the likelihood() SQL
function (the probability value) so that it can handle probabilities
as small as 0.00000001. Formerly, it ran out of precision at 0.001.
FossilOrigin-Name: 0f08924fe0c52a85a103f67bee9809e0f8f884b0
Diffstat (limited to 'src/where.c')
-rw-r--r-- | src/where.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c index 2e42b8fc3..358d50826 100644 --- a/src/where.c +++ b/src/where.c @@ -225,7 +225,7 @@ static int whereClauseInsert(WhereClause *pWC, Expr *p, u8 wtFlags){ } pTerm = &pWC->a[idx = pWC->nTerm++]; if( p && ExprHasProperty(p, EP_Unlikely) ){ - pTerm->truthProb = sqlite3LogEst(p->iTable) - 99; + pTerm->truthProb = sqlite3LogEst(p->iTable) - 270; }else{ pTerm->truthProb = 1; } |