Allow to use Subqueries in from
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
5805a9d505
commit
e0a825658d
|
@ -1170,6 +1170,10 @@ class QueryBuilder implements IQueryBuilder {
|
|||
* @return string
|
||||
*/
|
||||
public function getTableName($table) {
|
||||
if ($table instanceof IQueryFunction) {
|
||||
return (string) $table;
|
||||
}
|
||||
|
||||
$table = $this->prefixTableName($table);
|
||||
return $this->helper->quoteColumnName($table);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue