Fix Rows (alias was '*' when selecting '*')

This commit is contained in:
xdrm-brackets 2016-11-07 19:42:15 +01:00
parent be0c79fe67
commit 8e5b6ae77c
1 changed files with 2 additions and 1 deletions

View File

@ -332,7 +332,7 @@
foreach($this->schema['columns'] as $f=>$c) foreach($this->schema['columns'] as $f=>$c)
if( !isset($this->select[$f]) ) 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 */ /* (2) Si aucun SELECT pour ce champ, on le crée */
}else{ }else{
@ -985,6 +985,7 @@
/* (2) On compose la requête */ /* (2) On compose la requête */
$requestString = SQLBuilder::BUILD($requestS).';'; $requestString = SQLBuilder::BUILD($requestS).';';
// var_dump($requestString);
/* (3) On prépare la requête */ /* (3) On prépare la requête */
$request = DatabaseDriver::getPDO($this->driver)->prepare($requestString); $request = DatabaseDriver::getPDO($this->driver)->prepare($requestString);