Skip to content

Commit

Permalink
Fixing some problem on fetching result data with multiple columns wit…
Browse files Browse the repository at this point in the history
…h same name
  • Loading branch information
lorenzo committed Oct 17, 2010
1 parent 0828737 commit 642bfe3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cake/libs/model/datasources/dbo/dbo_mysql.php
Expand Up @@ -350,10 +350,9 @@ function resultSet($results) {
function fetchResult() {
if ($row = $this->results->fetch()) {
$resultRow = array();

foreach ($this->map as $col => $meta) {
list($table, $column) = $meta;
$resultRow[$table][$column] = $row->{$meta[1]};
$resultRow[$table][$column] = $row[$col];
}
return $resultRow;
} else {
Expand Down

0 comments on commit 642bfe3

Please sign in to comment.