Adding boolean casts for sqlite

This commit is contained in:
José Lorenzo Rodríguez 2011-01-02 01:26:57 -04:30
parent fe18e31b79
commit 5a75d1d91a

View file

@ -335,8 +335,11 @@ class DboSqlite extends DboSource {
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 {