From: Pierangelo Masarati Date: Tue, 16 Mar 2004 11:03:27 +0000 (+0000) Subject: fix brain dead count (part of ITS#2641) X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~275 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5ff958a5fd58d067eef328bea9b349216826c235;p=openldap fix brain dead count (part of ITS#2641) --- diff --git a/servers/slapd/back-sql/entry-id.c b/servers/slapd/back-sql/entry-id.c index d70169a2a5..e1644e2f40 100644 --- a/servers/slapd/back-sql/entry-id.c +++ b/servers/slapd/back-sql/entry-id.c @@ -236,7 +236,10 @@ backsql_count_children( 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; }