aboutsummaryrefslogtreecommitdiff
path: root/src/btree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/btree.c')
-rw-r--r--src/btree.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c
index b4a5dcb84..cb91dc3a4 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -9,7 +9,7 @@
** May you share freely, never taking more than you give.
**
*************************************************************************
-** $Id: btree.c,v 1.141 2004/05/16 16:24:37 drh Exp $
+** $Id: btree.c,v 1.142 2004/05/18 10:06:25 danielk1977 Exp $
**
** This file implements a external (disk-based) database using BTrees.
** For a detailed discussion of BTrees, refer to
@@ -1406,6 +1406,15 @@ create_cursor_exception:
return rc;
}
+void sqlite3BtreeSetCompare(
+ BtCursor *pCur,
+ int(* xCmp)(void*,int,const void*,int,const void*),
+ void *pArg
+){
+ pCur->xCompare = xCmp ? xCmp : dfltCompare;
+ pCur->pArg = pArg;
+}
+
/*
** Close a cursor. The read lock on the database file is released
** when the last cursor is closed.