mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Adding boolean casts for sqlite
This commit is contained in:
parent
fe18e31b79
commit
5a75d1d91a
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue