Merge pull request #212 from j15e/1.3

Fix to defect model virtualfields with mysqli
This commit is contained in:
José Lorenzo Rodríguez 2011-09-23 07:17:07 -07:00
commit f57f7305f5

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