Skip to content
This repository
Browse code

Fix to defect model virtualfields with mysqli

Refs #2017
  • Loading branch information...
commit af36429342b48bd45f54d815d398a1270aeb5266 1 parent 6a05cad
Jean-Philippe Doyle authored September 22, 2011
2  cake/libs/model/datasources/dbo/dbo_mysqli.php
@@ -269,7 +269,7 @@ function resultSet(&$results) {
269 269
 		$j = 0;
270 270
 		while ($j < $numFields) {
271 271
 			$column = mysqli_fetch_field_direct($results, $j);
272  
-			if (!empty($column->table)) {
  272
+			if (!empty($column->table) && strpos($column->name, $this->virtualFieldSeparator) === false) {
273 273
 				$this->map[$index++] = array($column->table, $column->name);
274 274
 			} else {
275 275
 				$this->map[$index++] = array(0, $column->name);

0 notes on commit af36429

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