aboutsummaryrefslogtreecommitdiff
path: root/src/btree.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2004-05-18 10:06:24 +0000
committerdanielk1977 <danielk1977@noemail.net>2004-05-18 10:06:24 +0000
commitbf3b721fab9d66860e80a598af20a15e1a0ee9bb (patch)
treeff712f574e2367c9ee48d9b49e1f26db8db45470 /src/btree.c
parent84ac9d02dd8ff5d03ce8bc5e91a68c0989633eef (diff)
downloadsqlite-bf3b721fab9d66860e80a598af20a15e1a0ee9bb.tar.gz
sqlite-bf3b721fab9d66860e80a598af20a15e1a0ee9bb.zip
Fix many problems with manifest types and column affinity. Most things are
working now. (CVS 1393) FossilOrigin-Name: ad4a964158ba9ca9d221cf7ea0439577f3894890
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.