mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Allow to use Subqueries in from
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
23c422655d
commit
a99a92b673
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue