aboutsummaryrefslogtreecommitdiff
path: root/src/btree.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2017-12-29 15:04:49 +0000
committerdrh <drh@noemail.net>2017-12-29 15:04:49 +0000
commit092457b18ce71b6b0f30ea8a67817310feffaebc (patch)
treee967666936f525c57f84a914d272dcdc22a9c031 /src/btree.h
parentfe6d20e9f4d17ad82fd4c4cc69181ad5f52d9d93 (diff)
downloadsqlite-092457b18ce71b6b0f30ea8a67817310feffaebc.tar.gz
sqlite-092457b18ce71b6b0f30ea8a67817310feffaebc.zip
Change the function name to sqlite_unsupported_offset(X). Only enable the
function if compiled with -DSQLITE_ENABLE_OFFSET_SQL_FUNC. The makefiles add that definition to shell builds. FossilOrigin-Name: 7a7f826e324b1a2c332e2f1d0740fd0babffcaca6275a798572f02ad367b99ab
Diffstat (limited to 'src/btree.h')
-rw-r--r--src/btree.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/btree.h b/src/btree.h
index 43c0b9a8a..e8e114bd2 100644
--- a/src/btree.h
+++ b/src/btree.h
@@ -291,7 +291,9 @@ int sqlite3BtreeNext(BtCursor*, int flags);
int sqlite3BtreeEof(BtCursor*);
int sqlite3BtreePrevious(BtCursor*, int flags);
i64 sqlite3BtreeIntegerKey(BtCursor*);
-i64 sqlite3BtreeLocation(BtCursor*);
+#ifdef SQLITE_ENABLE_OFFSET_SQL_FUNC
+i64 sqlite3BtreeOffset(BtCursor*);
+#endif
int sqlite3BtreePayload(BtCursor*, u32 offset, u32 amt, void*);
const void *sqlite3BtreePayloadFetch(BtCursor*, u32 *pAmt);
u32 sqlite3BtreePayloadSize(BtCursor*);