Skip to content
Browse files

Fix to defect model virtualfields with mysqli

Refs #2017
  • Loading branch information...
1 parent 6a05cad commit af36429342b48bd45f54d815d398a1270aeb5266 @j15e committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/model/datasources/dbo/dbo_mysqli.php
View
2 cake/libs/model/datasources/dbo/dbo_mysqli.php
@@ -269,7 +269,7 @@ function resultSet(&$results) {
$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);

0 comments on commit af36429

Please sign in to comment.
Something went wrong with that request. Please try again.