-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmap32-feedbackbugfeature: databaseDatabase related DBDatabase related DB
Description
Error while running background job OCA\Theming\Jobs\RestoreBackgroundImageColor
An exception occurred while executing a query:
SQLSTATE[42601]: Syntax error: 7 ERROR:
syntax error at or near
"" FROM "" LINE 1: ..."oc_preferences" "a" LEFT JOIN "oc_(SELECT "userid" FROM "oc...
^
The syntax created by
| ->leftJoin('a', $qb->createFunction('(' . $innerSQL->getSQL() . ')'), 'b', 'a.userid = b.userid') |
- I added a unit test to demonstrate it in test(theming): Add unit test to check database query in theming backgroundjob #53778
It's basically failing this check in oracle and when sharding is used:
server/lib/private/DB/QueryBuilder/QueryBuilder.php
Lines 1331 to 1333 in 48d69c7
| if ($table instanceof IQueryFunction) { | |
| return (string)$table; | |
| } |
Metadata
Metadata
Assignees
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmap32-feedbackbugfeature: databaseDatabase related DBDatabase related DB