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"
char * hTalloc,
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,
char * pDN,
long long * pEID);
+static int
+new_attr(struct ldb_module * module,
+ char * pAttrName);
+
/*
* Table of operations for the sqlite3 backend
}
-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
}
+
static int
new_dn(struct ldb_module * module,
char * pDN,
}
+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;
+}
+