This is a requirement for correct schema syntax comparison.
"lib/ldb/tests/test-tdb-features.sh" demostrates this when adding index
entries and the default syntax is set to INTEGER.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=8929
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
int r;
const struct ldb_schema_attribute *def = &ldb_attribute_default;
+ /* special attributes should always be handled by the default syntax */
+ if (name[0] == '@') {
+ return def;
+ }
+
/* as handlers are sorted, '*' must be the first if present */
if (strcmp(ldb->schema.attributes[0].name, "*") == 0) {
def = &ldb->schema.attributes[0];