mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Fixing boolean type introspection for Mysql in PHP 5.5
This commit is contained in:
parent
df1e74765b
commit
f6eac9a175
1 changed files with 2 additions and 2 deletions
|
@ -226,8 +226,8 @@ class Mysql extends DboSource {
|
|||
|
||||
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'];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue