char *end;
*nchildren = strtol( row.cols[ 0 ], &end, 0 );
- if ( end[ 0 ] != '\0' ) {
+ if ( end[ 0 ] != '\0' && end[0] != '.' ) {
+ /* FIXME: braindead RDBMSes return
+ * a fractional number from COUNT!
+ */
res = LDAP_OTHER;
}
}
rc = backsql_supad2at( bsi->bsi_oc, attr->an_desc, &vat );
- if ( rc != 0 ) {
+ if ( rc != 0 || vat == NULL ) {
Debug( LDAP_DEBUG_TRACE, "backsql_id2entry(): "
"attribute '%s' is not defined "
"for objectlass '%s'\n",