You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A similar issue was reported some time ago but only on "Discussions" part of the site, i'll paste here the DQL:
SELECT u, CASE WHEN u.roles LIKE '%ROLE_SUPER_ADMIN%' THEN 'Admin' ELSE '' END AS role
FROM App\Entity\User u
WHERE (CASE WHEN u.roles LIKE '%ROLE_SUPER_ADMIN%' THEN 'Admin' ELSE '' END LIKE :filter0_0)
and I got the error [Syntax Error] line 0, col 936: Error: Expected =, <, <=, <>, >, >=, !=, got 'LIKE'
The text was updated successfully, but these errors were encountered:
Hello,
Its seems a QueryBuilder CASE statement combined with a LIKE is throwing this error:
Error: Expected =, <, <=, <>, >, >=, !=, got 'LIKE'
A similar issue was reported some time ago but only on "Discussions" part of the site, i'll paste here the DQL:
SELECT u, CASE WHEN u.roles LIKE '%ROLE_SUPER_ADMIN%' THEN 'Admin' ELSE '' END AS role
FROM App\Entity\User u
WHERE (CASE WHEN u.roles LIKE '%ROLE_SUPER_ADMIN%' THEN 'Admin' ELSE '' END LIKE :filter0_0)
and I got the error [Syntax Error] line 0, col 936: Error: Expected =, <, <=, <>, >, >=, !=, got 'LIKE'
The text was updated successfully, but these errors were encountered: