1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix handling of "id=?" corner cases in rtree when the value on the RHS is a real value.

FossilOrigin-Name: 027e5336acc26f57f21df4980928731026c30cf88688fa0b66f13ffa0b5da3a0
This commit is contained in:
dan
2024-03-06 11:35:36 +00:00
parent 7ab40cda7b
commit 53ca213e73
4 changed files with 21 additions and 9 deletions

View File

@ -1870,7 +1870,7 @@ static int rtreeFilter(
i64 iNode = 0;
int eType = sqlite3_value_numeric_type(argv[0]);
if( eType==SQLITE_INTEGER
|| (eType==SQLITE_FLOAT && sqlite3_value_double(argv[0])==iRowid)
|| (eType==SQLITE_FLOAT && (i64)(sqlite3_value_double(argv[0]))==iRowid)
){
rc = findLeafNode(pRtree, iRowid, &pLeaf, &iNode);
}else{