Fix substring indices and enable in tests.

This commit is contained in:
Kurt Zeilenga 2000-07-18 22:59:34 +00:00
parent 9c5ad6291b
commit c0bbb090b7
2 changed files with 4 additions and 4 deletions

View file

@ -1398,10 +1398,10 @@ int caseIgnoreIA5SubstringsIndexer(
int j,max;
struct berval *value;
if( value->bv_len < SLAP_INDEX_SUBSTR_MINLEN ) continue;
if( values[i]->bv_len < SLAP_INDEX_SUBSTR_MINLEN ) continue;
max = SLAP_INDEX_SUBSTR_MAXLEN < value->bv_len
? SLAP_INDEX_SUBSTR_MAXLEN : value->bv_len;
max = SLAP_INDEX_SUBSTR_MAXLEN < values[i]->bv_len
? SLAP_INDEX_SUBSTR_MAXLEN : values[i]->bv_len;
value = ber_bvdup( values[i] );
ldap_pvt_str2upper( value->bv_val );

View file

@ -21,6 +21,6 @@ suffix "o=University of Michigan, c=US"
directory ./test-db
rootdn "cn=Manager, o=University of Michigan, c=US"
rootpw secret
index cn,sn,uid pres,eq
index cn,sn,uid pres,eq,sub
dbnosync
dbnolocking