Skip to content

Commit

Permalink
Adding boolean casts for sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jan 2, 2011
1 parent fe18e31 commit 5a75d1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cake/libs/model/datasources/dbo/dbo_sqlite.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,11 @@ function fetchResult() {
if ($row = $this->_result->fetch()) {
$resultRow = array();
foreach ($this->map as $col => $meta) {
list($table, $column) = $meta;
list($table, $column, $tpye) = $meta;
$resultRow[$table][$column] = $row[$col];
if ($type === 'boolean') {
$resultRow[$table][$column] = $this->boolean($resultRow[$table][$column]);
}
}
return $resultRow;
} else {
Expand Down

0 comments on commit 5a75d1d

Please sign in to comment.