Fixing infinite loop in AdoDB when trying to get result sets with more than on result. Fixes #5846

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7908 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mark_story 2008-12-08 03:13:45 +00:00
parent 48119947b8
commit 930a2d954f

View file

@ -416,6 +416,7 @@ class DboAdodb extends DboSource {
function fetchResult() {
if (!empty($this->results)) {
$row = $this->results;
$this->results = null;
} else {
$row = $this->_result->FetchRow();
}