- Fixed lastInsertId (dn) and queryResult count
This commit is contained in:
parent
353e494992
commit
0c6ef271a8
|
@ -16,7 +16,7 @@ class LdapObject {
|
||||||
|
|
||||||
public int $bufferedRows = 0;
|
public int $bufferedRows = 0;
|
||||||
|
|
||||||
public int $lastInsertId = 0;
|
public /*int*/ $lastInsertId = 0;
|
||||||
|
|
||||||
public string $dn;
|
public string $dn;
|
||||||
|
|
||||||
|
@ -166,7 +166,10 @@ class LdapObject {
|
||||||
$this->throwLdapException();
|
$this->throwLdapException();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->rowCount = 1;
|
if ($queryResult) {
|
||||||
|
$this->rowCount = (int)$queryResult;
|
||||||
|
$this->lastInsertId = $dn;
|
||||||
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -179,7 +182,7 @@ class LdapObject {
|
||||||
$this->throwLdapException();
|
$this->throwLdapException();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->rowCount = 1;
|
$this->rowCount = (int) $queryResult;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -192,7 +195,7 @@ class LdapObject {
|
||||||
$this->throwLdapException();
|
$this->throwLdapException();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->rowCount = 1;
|
$this->rowCount = (int) $queryResult;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue