Allow to use Subqueries in from

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-04-16 11:43:12 +02:00 committed by Roeland Jago Douma
parent 5805a9d505
commit e0a825658d
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 4 additions and 0 deletions

View File

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