]> git.sur5r.net Git - openldap/commitdiff
fix brain dead count (part of ITS#2641)
authorPierangelo Masarati <ando@openldap.org>
Tue, 16 Mar 2004 11:03:27 +0000 (11:03 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 16 Mar 2004 11:03:27 +0000 (11:03 +0000)
servers/slapd/back-sql/entry-id.c

index d70169a2a5fddff75ce250aead88fe1058eba453..e1644e2f4011a20216dd7ddbbea1ec040d6a096f 100644 (file)
@@ -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;
                }