diff options
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r-- | source4/lib/ldb/common/ldb_explode_dn.c | 1 | ||||
-rw-r--r-- | source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c | 47 |
2 files changed, 25 insertions, 23 deletions
diff --git a/source4/lib/ldb/common/ldb_explode_dn.c b/source4/lib/ldb/common/ldb_explode_dn.c index e3cd53d047..f015ce81c7 100644 --- a/source4/lib/ldb/common/ldb_explode_dn.c +++ b/source4/lib/ldb/common/ldb_explode_dn.c @@ -19,6 +19,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <ctype.h> #include "includes.h" #include "ldb/include/ldb.h" #include "ldb/include/ldb_private.h" diff --git a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c index c16708672d..e491fba6e0 100644 --- a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c +++ b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c @@ -143,10 +143,6 @@ parsetree_to_tablelist(struct ldb_module *module, const struct ldb_parse_tree *t); static int -new_attr(struct ldb_module * module, - char * pAttrName); - -static int msg_to_sql(struct ldb_module * module, const struct ldb_message * msg, long long eid, @@ -157,6 +153,10 @@ new_dn(struct ldb_module * module, char * pDN, long long * pEID); +static int +new_attr(struct ldb_module * module, + char * pAttrName); + /* * Table of operations for the sqlite3 backend @@ -1172,25 +1172,6 @@ parsetree_to_tablelist(struct ldb_module *module, } -static int -new_attr(struct ldb_module * module, - char * pAttrName) -{ - struct lsqlite3_private * lsqlite3 = module->private_data; - - /* NOTE: pAttrName is assumed to already be case-folded here! */ - QUERY_NOROWS(lsqlite3, - FALSE, - "CREATE TABLE ldb_attr_%q " - "(" - " eid INTEGER REFERENCES ldb_entry, " - " attr_value TEXT" - ");", - pAttrName); - - return 0; -} - /* * Issue a series of SQL statements to implement the ADD/MODIFY/DELETE * requests in the ldb_message @@ -1301,6 +1282,7 @@ msg_to_sql(struct ldb_module * module, } + static int new_dn(struct ldb_module * module, char * pDN, @@ -1324,3 +1306,22 @@ new_dn(struct ldb_module * module, } +static int +new_attr(struct ldb_module * module, + char * pAttrName) +{ + struct lsqlite3_private * lsqlite3 = module->private_data; + + /* NOTE: pAttrName is assumed to already be case-folded here! */ + QUERY_NOROWS(lsqlite3, + FALSE, + "CREATE TABLE ldb_attr_%q " + "(" + " eid INTEGER REFERENCES ldb_entry, " + " attr_value TEXT" + ");", + pAttrName); + + return 0; +} + |