From befd5f3c20826aecaa19d32bcba69de8811150aa Mon Sep 17 00:00:00 2001 From: drh Date: Wed, 2 Mar 2011 15:44:35 +0000 Subject: [PATCH] Make sure the rtreenode() testing and analysis routine in the RTREE extension can handle 64-bit rowids. This fix is in response to a message on the mailing list. FossilOrigin-Name: 24602557fc3295fe2836d269175f12ec680ac011 --- ext/rtree/rtree.c | 2 +- ext/rtree/rtreeB.test | 34 ++++++++++++++++++++++++++++++++++ manifest | 19 ++++++++++--------- manifest.uuid | 2 +- 4 files changed, 46 insertions(+), 11 deletions(-) create mode 100644 ext/rtree/rtreeB.test diff --git a/ext/rtree/rtree.c b/ext/rtree/rtree.c index 5665e6aa8c..d47c1092ef 100644 --- a/ext/rtree/rtree.c +++ b/ext/rtree/rtree.c @@ -3133,7 +3133,7 @@ static void rtreenode(sqlite3_context *ctx, int nArg, sqlite3_value **apArg){ int jj; nodeGetCell(&tree, &node, ii, &cell); - sqlite3_snprintf(512-nCell,&zCell[nCell],"%d", cell.iRowid); + sqlite3_snprintf(512-nCell,&zCell[nCell],"%lld", cell.iRowid); nCell = strlen(zCell); for(jj=0; jj