SQL min and LDAP spare warnings