diff options
author | drh <drh@noemail.net> | 2016-06-04 20:37:10 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-06-04 20:37:10 +0000 |
commit | a7c90c42eaf1badd141ca21bd64669e03de9830c (patch) | |
tree | 3a75a6da20c897d85ae393b4a6e6655acf006782 /src/vdbeblob.c | |
parent | f94fdd832cc7f7ec1764af518edf746cba6a3687 (diff) | |
download | sqlite-a7c90c42eaf1badd141ca21bd64669e03de9830c.tar.gz sqlite-a7c90c42eaf1badd141ca21bd64669e03de9830c.zip |
Change the sqlite3BtreeKeySize() interface into sqlite3BtreeIntegerKey() and
make it only work for table btrees. Change sqlite3BtreeDataSize() into
sqlite3BtreePayloadSize() and make it work for all btrees. Combine
sqlite3BtreeDataFetch() and sqlite3BtreeKeyFetch() into a single
sqlite3BtreePayloadFetch() routine. These changes seem to make the
b-tree interface more rational and they reduce both binary size and
CPU usage.
FossilOrigin-Name: bef35e18dd19732f7859287b097feeb593e5900f
Diffstat (limited to 'src/vdbeblob.c')
-rw-r--r-- | src/vdbeblob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdbeblob.c b/src/vdbeblob.c index f2b3ffef2..01827f94d 100644 --- a/src/vdbeblob.c +++ b/src/vdbeblob.c @@ -415,7 +415,7 @@ static int blobReadWrite( ** anyhow. */ sqlite3_int64 iKey; - sqlite3BtreeKeySize(p->pCsr, &iKey); + iKey = sqlite3BtreeIntegerKey(p->pCsr); sqlite3VdbePreUpdateHook( v, v->apCsr[0], SQLITE_DELETE, p->zDb, p->pTab, iKey, -1 ); |