Skip to content
Snippets Groups Projects
Unverified Commit f9069131 authored by Joas Schilling's avatar Joas Schilling Committed by Roeland Jago Douma
Browse files

Allow to use Subqueries in from

parent 24d6a28f
No related branches found
No related tags found
No related merge requests found
...@@ -1170,6 +1170,10 @@ class QueryBuilder implements IQueryBuilder { ...@@ -1170,6 +1170,10 @@ class QueryBuilder implements IQueryBuilder {
* @return string * @return string
*/ */
public function getTableName($table) { public function getTableName($table) {
if ($table instanceof IQueryFunction) {
return (string) $table;
}
$table = $this->prefixTableName($table); $table = $this->prefixTableName($table);
return $this->helper->quoteColumnName($table); return $this->helper->quoteColumnName($table);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment