mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-525: Fix up password history delete to be more compatible.
This commit is contained in:
@@ -65,12 +65,11 @@
|
||||
);
|
||||
|
||||
DELETE FROM [guacamole_user_password_history]
|
||||
WHERE password_history_id IN (
|
||||
SELECT password_history_id
|
||||
WHERE password_history_id NOT IN (
|
||||
SELECT TOP(#{maxHistorySize}) password_history_id
|
||||
FROM [guacamole_user_password_history]
|
||||
WHERE user_id = #{record.userID,jdbcType=INTEGER}
|
||||
ORDER BY password_date DESC
|
||||
OFFSET #{maxHistorySize}
|
||||
);
|
||||
|
||||
</insert>
|
||||
|
Reference in New Issue
Block a user