mirror of
https://github.com/nextcloud/server.git
synced 2026-03-21 18:11:02 -04:00
Allow to use Subqueries in from
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
24d6a28f80
commit
f906913177
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