2019-02-09 16:36:05 +01:00
|
|
|
# Stored Procedure bereinigung der quittierte Logs
|
|
|
|
|
|
|
|
DELIMITER //
|
|
|
|
CREATE PROCEDURE LogClear
|
|
|
|
(
|
|
|
|
IN _logentries_id INT
|
|
|
|
)
|
|
|
|
|
|
|
|
BEGIN
|
|
|
|
|
|
|
|
DELETE FROM v_logentries
|
2019-05-07 18:11:41 +02:00
|
|
|
WHERE _logentries_id = v_logentrie_id;
|
2019-02-09 16:36:05 +01:00
|
|
|
|
|
|
|
UPDATE Log
|
|
|
|
SET is_acknowledged = 1
|
2019-05-07 18:11:41 +02:00
|
|
|
WHERE log_id = _logentries_id;
|
2019-02-09 16:36:05 +01:00
|
|
|
|
|
|
|
END //
|
|
|
|
DELIMITER ;
|