1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source4/lib/ldb/ldb_sqlite3
Simo Sorce 5c95905871 r11567: Ldb API change patch.
This patch changes the way lsb_search is called and the meaning of the returned integer.
The last argument of ldb_search is changed from struct ldb_message to struct ldb_result
which contains a pointer to a struct ldb_message list and a count of the number of messages.
The return is not the count of messages anymore but instead it is an ldb error value.

I tryed to keep the patch as tiny as possible bu as you can guess I had to change a good
amount of places. I also tried to double check all my changes being sure that the calling
functions would still behave as before. But this patch is big enough that I fear some bug
may have been introduced anyway even if it passes the test suite. So if you are currently
working on any file being touched please give it a deep look and blame me for any error.

Simo.
(This used to be commit 22c8c97e6f)
2007-10-10 13:45:53 -05:00
..
base160.c r7828: Although there is still plenty to do, ldb_sqlite3 now passes the set of tests 2007-10-10 13:18:41 -05:00
ldb_sqlite3.c r11567: Ldb API change patch. 2007-10-10 13:45:53 -05:00
ldb_sqlite3.h r10305: start implementing better error handling 2007-10-10 13:38:16 -05:00
README r7287: work in progress. no more time to work on this right now. save latest changes. 2007-10-10 13:17:36 -05:00
schema r7828: Although there is still plenty to do, ldb_sqlite3 now passes the set of tests 2007-10-10 13:18:41 -05:00
trees.ps r6984: added tree representation documentation and utility code, to be used for subclasses of object classes 2007-10-10 13:17:02 -05:00

trees.ps contains an explanation of the Genealogical Representation of Trees
in Databases which is being used in ldb_sqlite3.  Note that we use fgID
representation with 4 bytes per level, so we can represent 6.5E+08 subclasses
of any object class.  This should be adequate for our purposes. :-)

The following document is the primary basis for the schema currently being
used here:  http://www.research.ibm.com/journal/sj/392/shi.html