From 5a75d1d91acccff8c36f89bb95bf361260941a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Lorenzo=20Rodri=CC=81guez?= Date: Sun, 2 Jan 2011 01:26:57 -0430 Subject: [PATCH] Adding boolean casts for sqlite --- cake/libs/model/datasources/dbo/dbo_sqlite.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cake/libs/model/datasources/dbo/dbo_sqlite.php b/cake/libs/model/datasources/dbo/dbo_sqlite.php index d52cb6b15..c09b175e2 100644 --- a/cake/libs/model/datasources/dbo/dbo_sqlite.php +++ b/cake/libs/model/datasources/dbo/dbo_sqlite.php @@ -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 {