summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_sqlite3
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2005-06-09 18:43:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:54 -0500
commit5351ae59a0d7043f627fa066879cf7252451fbd9 (patch)
tree56d6443f7e8024a2c47dcde84945ebdfc44f17e5 /source4/lib/ldb/ldb_sqlite3
parent09bdc1b9384ceddc610514a605028f09f8195f1d (diff)
downloadsamba-5351ae59a0d7043f627fa066879cf7252451fbd9.tar.gz
samba-5351ae59a0d7043f627fa066879cf7252451fbd9.tar.bz2
samba-5351ae59a0d7043f627fa066879cf7252451fbd9.zip
r7449: add ctype.h header to dn expand function
(This used to be commit 0e3b872560d82e1a0f7b58fe7d210563d6d29daf)
Diffstat (limited to 'source4/lib/ldb/ldb_sqlite3')
-rw-r--r--source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c47
1 files changed, 24 insertions, 23 deletions
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;
+}
+