Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing boolean type introspection for Mysql in PHP 5.5

  • Loading branch information...
commit f6eac9a175ab9c97b0e0763971581702ae0a6b01 1 parent df1e747
@lorenzo lorenzo authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Model/Datasource/Database/Mysql.php
View
4 lib/Cake/Model/Datasource/Database/Mysql.php
@@ -226,8 +226,8 @@ public function resultSet($results) {
while ($numFields-- > 0) {
$column = $results->getColumnMeta($index);
- if (empty($column['native_type'])) {
- $type = ($column['len'] == 1) ? 'boolean' : 'string';
+ if ($column['len'] === 1 && $column['native_type'] === 'TINY') {
+ $type = 'boolean';
} else {
$type = $column['native_type'];
}
Please sign in to comment.
Something went wrong with that request. Please try again.