fix brain dead count (part of ITS#2641)

This commit is contained in:
Pierangelo Masarati 2004-03-16 11:03:27 +00:00
parent 23a9893726
commit 5ff958a5fd

View 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;
}