diff --git a/servers/slapd/back-sql/entry-id.c b/servers/slapd/back-sql/entry-id.c index 74035025d0..d0aafa1645 100644 --- a/servers/slapd/back-sql/entry-id.c +++ b/servers/slapd/back-sql/entry-id.c @@ -460,10 +460,10 @@ backsql_get_attr_vals( void *v_at, void *v_bsi ) oldcount = 0, res = 0; #ifdef BACKSQL_COUNTQUERY - unsigned long count, - countsize = sizeof( count ), + unsigned count, j, append = 0; + SQLLEN countsize = sizeof( count ); Attribute *attr = NULL; slap_mr_normalize_func *normfunc = NULL;