mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix brain dead count (part of ITS#2641)
This commit is contained in:
parent
23a9893726
commit
5ff958a5fd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user