Skip to content

RestoreBackgroundImageColor background job causes database error #53779

Open
@nickvergessen

Description

@nickvergessen

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')
is invalid

It's basically failing this check in oracle and when sharding is used:

if ($table instanceof IQueryFunction) {
return (string)$table;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions