diff options
author | Joas Schilling <coding@schilljs.com> | 2019-04-16 11:43:12 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-04-17 15:33:57 +0200 |
commit | e77272e3fc036b82ad960718695f9bc124d12019 (patch) | |
tree | 28829bb45b69e0cd061d8c87676a07738546a70a /lib | |
parent | 7cbba3e717a0bc51bb9e1f59822d6a6b9138833f (diff) | |
download | nextcloud-server-e77272e3fc036b82ad960718695f9bc124d12019.tar.gz nextcloud-server-e77272e3fc036b82ad960718695f9bc124d12019.zip |
Allow to use Subqueries in from
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/DB/QueryBuilder/QueryBuilder.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/DB/QueryBuilder/QueryBuilder.php b/lib/private/DB/QueryBuilder/QueryBuilder.php index ebbcdeb0870..25d59fb7d7d 100644 --- a/lib/private/DB/QueryBuilder/QueryBuilder.php +++ b/lib/private/DB/QueryBuilder/QueryBuilder.php @@ -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); } |