mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
More edge case handlignfor native_type in mysql for older versions of
php
This commit is contained in:
parent
b8bbf0b4a9
commit
489d1db7d1
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ class Mysql extends DboSource {
|
|||
if ($column['len'] === 1 && (empty($column['native_type']) || $column['native_type'] === 'TINY')) {
|
||||
$type = 'boolean';
|
||||
} else {
|
||||
$type = $column['native_type'];
|
||||
$type = empty($column['native_type']) ? 'string' : $column['native_type'];
|
||||
}
|
||||
if (!empty($column['table']) && strpos($column['name'], $this->virtualFieldSeparator) === false) {
|
||||
$this->map[$index++] = array($column['table'], $column['name'], $type);
|
||||
|
|
Loading…
Add table
Reference in a new issue