GUACAMOLE-2088: Add missing "AND" for MySQL/MariaDB "DELETE" query.

This commit is contained in:
Michael Jumper authored and adam committed 2026-04-20 14:19:19 +01:00
1 parent 0537c89cd7
commit 7534ddfef9
1 file changed
+1 -1
@@ -291,7 +291,6 @@
<delete id="delete"> <delete id="delete">
DELETE FROM guacamole_entity DELETE FROM guacamole_entity
WHERE WHERE
type = 'USER_GROUP'
<choose> <choose>
<when test="caseSensitivity.caseSensitiveGroupNames()"> <when test="caseSensitivity.caseSensitiveGroupNames()">
name = #{identifier,jdbcType=VARCHAR} name = #{identifier,jdbcType=VARCHAR}
@@ -300,6 +299,7 @@
LOWER(name) = LOWER(#{identifier,jdbcType=VARCHAR}) LOWER(name) = LOWER(#{identifier,jdbcType=VARCHAR})
</otherwise> </otherwise>
</choose> </choose>
AND type = 'USER_GROUP'
</delete> </delete>
<!-- Insert single group --> <!-- Insert single group -->