From 930a2d954f277f1994420255e87d560fee258a5f Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 8 Dec 2008 03:13:45 +0000 Subject: [PATCH] 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 --- cake/libs/model/datasources/dbo/dbo_adodb.php | 1 + 1 file changed, 1 insertion(+) diff --git a/cake/libs/model/datasources/dbo/dbo_adodb.php b/cake/libs/model/datasources/dbo/dbo_adodb.php index 159185e62..53d6f9601 100644 --- a/cake/libs/model/datasources/dbo/dbo_adodb.php +++ b/cake/libs/model/datasources/dbo/dbo_adodb.php @@ -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(); }