mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Merge pull request #212 from j15e/1.3
Fix to defect model virtualfields with mysqli
This commit is contained in:
commit
f57f7305f5
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ class DboMysqli extends DboMysqlBase {
|
|||
$j = 0;
|
||||
while ($j < $numFields) {
|
||||
$column = mysqli_fetch_field_direct($results, $j);
|
||||
if (!empty($column->table)) {
|
||||
if (!empty($column->table) && strpos($column->name, $this->virtualFieldSeparator) === false) {
|
||||
$this->map[$index++] = array($column->table, $column->name);
|
||||
} else {
|
||||
$this->map[$index++] = array(0, $column->name);
|
||||
|
|
Loading…
Add table
Reference in a new issue