Fix [ORM::Rows] (alias was '*' while selecting '*')
This commit is contained in:
parent
f875c9dc53
commit
e67b59d110
|
@ -332,7 +332,7 @@
|
|||
|
||||
foreach($this->schema['columns'] as $f=>$c)
|
||||
if( !isset($this->select[$f]) )
|
||||
$this->select[$f] = [$func, $distinct, $alias];
|
||||
$this->select[$f] = [$func, $distinct, $f];
|
||||
|
||||
/* (2) Si aucun SELECT pour ce champ, on le crée */
|
||||
}else{
|
||||
|
@ -985,6 +985,7 @@
|
|||
|
||||
/* (2) On compose la requête */
|
||||
$requestString = SQLBuilder::BUILD($requestS).';';
|
||||
// var_dump($requestString);
|
||||
|
||||
/* (3) On prépare la requête */
|
||||
$request = DatabaseDriver::getPDO($this->driver)->prepare($requestString);
|
||||
|
|
Loading…
Reference in New Issue