Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix to defect model virtualfields with mysqli #212

Merged
merged 1 commit into from

2 participants

Commits on Sep 23, 2011
  1. @j15e
This page is out of date. Refresh to see the latest.
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);
Something went wrong with that request. Please try again.