N°3618 - Count on union with different conditions fails (Fix unit tests)

This commit is contained in:
Eric
2021-02-05 11:28:40 +01:00
parent f07f0ba1c7
commit dbb6e43751

View File

@@ -482,7 +482,7 @@ class OQLTest extends ItopDataTestCase
{
return [
'Bug 3618' => [
"SELECT UserRequest WHERE private_log LIKE '%Auteur : %' UNION SELECT Problem",
"SELECT UserRequest WHERE private_log LIKE '%Auteur : %' UNION SELECT UserRequest",
"SELECT COUNT(*) AS COUNT FROM (SELECT
1
FROM (
@@ -494,9 +494,9 @@ SELECT
UNION
SELECT
DISTINCT `Problem`.`id` AS `Problemid`
DISTINCT `UserRequest`.`id` AS `UserRequestid`
FROM
`ticket_problem` AS `Problem`
`ticket_request` AS `UserRequest`
WHERE 1
) as __selects__