Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #212 from j15e/1.3

Fix to defect model virtualfields with mysqli
  • Loading branch information...
commit f57f7305f51e919d80b6e03370e2340193af3f46 2 parents 9220837 + af36429
@lorenzo lorenzo authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.