diff options
author | drh <drh@noemail.net> | 2016-06-06 01:14:08 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-06-06 01:14:08 +0000 |
commit | 5cd22006ef417a954b3e57aed12c4ebb087a5e40 (patch) | |
tree | d384088e2544f22b84d7a619bbff16c0fff961de /src/vdbeblob.c | |
parent | f94fdd832cc7f7ec1764af518edf746cba6a3687 (diff) | |
parent | 5e08d0fcb6574735f2f02803117e7094136856ce (diff) | |
download | sqlite-5cd22006ef417a954b3e57aed12c4ebb087a5e40.tar.gz sqlite-5cd22006ef417a954b3e57aed12c4ebb087a5e40.zip |
Btree interface refactoring:
(1) The sqlite3BtreeKeySize() interface is renamed to sqlite3BtreeIntegerKey()
and modified to work only for table btrees with a rowid.
(2) The sqlite3BtreeDataSize() interface is renamed to sqlite3BtreePayloadSize()
and modified to work with any btree.
(3) The sqlite3BtreeDataFetch() and sqlite3BtreeKeyFetch() routines are
combined into a single sqlite3BtreePayloadFetch() routine.
The result of these changes is a smaller binary and fewer CPU cycles needed
to run queries.
FossilOrigin-Name: 2d831074cf730dce47de5880d7b4570d04d15fee
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 ); |