diff options
author | drh <> | 2023-05-19 11:48:05 +0000 |
---|---|---|
committer | drh <> | 2023-05-19 11:48:05 +0000 |
commit | 1cb4e2e196f2c591453dd7ff3780a6e917ee7910 (patch) | |
tree | 8ed771d5962d9de0fd64b6db4c7230ef5535c05b /ext/rtree/rtree.c | |
parent | 2c6c98dbf094f67a5a27d0c88654d5c1fb18304c (diff) | |
download | sqlite-1cb4e2e196f2c591453dd7ff3780a6e917ee7910.tar.gz sqlite-1cb4e2e196f2c591453dd7ff3780a6e917ee7910.zip |
Change the RTREE engine so that equality comparisons of floating point
values are duplicated in the byte-code so that the comparisons are done
using 64-bit floats and consistent results are always obtained.
[forum:/forumpost/da61c4a1b5b4af19|Forum post da61c4a1b5b4af19].
FossilOrigin-Name: 4ec0f0a31b0df93ad15545fe1db117c933e28c75ad3cbc8475b56fecdb084905
Diffstat (limited to 'ext/rtree/rtree.c')
-rw-r--r-- | ext/rtree/rtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/rtree/rtree.c b/ext/rtree/rtree.c index da5e2a97a..d24e9eb84 100644 --- a/ext/rtree/rtree.c +++ b/ext/rtree/rtree.c @@ -2051,7 +2051,7 @@ static int rtreeBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){ zIdxStr[iIdx++] = op; zIdxStr[iIdx++] = (char)(p->iColumn - 1 + '0'); pIdxInfo->aConstraintUsage[ii].argvIndex = (iIdx/2); - pIdxInfo->aConstraintUsage[ii].omit = 1; + pIdxInfo->aConstraintUsage[ii].omit = (op!=RTREE_EQ); } } } |