Merge pull request 'refs #6282 left join' (!1784) from 6282-hotfixFreeLancer into master
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #1784
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
Carlos Satorres 2023-10-06 05:43:02 +00:00
commit dea3bb7a98
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ module.exports = Self => {
SELECT DISTINCT w.id, w.code, u.name, u.nickname, u.active, b.departmentFk
FROM worker w
JOIN account.user u ON u.id = w.id
JOIN business b ON b.workerFk = w.id
LEFT JOIN business b ON b.workerFk = w.id
) w`);
stmt.merge(conn.makeSuffix(filter));