Fix to defect model virtualfields with mysqli

Refs #2017
This commit is contained in:
Jean-Philippe Doyle 2011-09-22 21:06:53 -04:00
parent 6a05cad69f
commit af36429342

View file

@ -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);