From 5ff958a5fd58d067eef328bea9b349216826c235 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 16 Mar 2004 11:03:27 +0000 Subject: [PATCH] fix brain dead count (part of ITS#2641) --- servers/slapd/back-sql/entry-id.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.5