mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-12 20:49:50 +00:00
More explicit fetch mode in Mysql datasource
This commit is contained in:
parent
8b7f069415
commit
850dbb9453
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ class Mysql extends DboSource {
|
|||
throw new CakeException(__d('cake_dev', 'Could not describe table for %s', $table));
|
||||
}
|
||||
|
||||
foreach ($cols as $column) {
|
||||
while ($column = $cols->fetch(PDO::FETCH_OBJ)) {
|
||||
$fields[$column->Field] = array(
|
||||
'type' => $this->column($column->Type),
|
||||
'null' => ($column->Null === 'YES' ? true : false),
|
||||
|
|
Loading…
Add table
Reference in a new issue