From ad434b7bb1fdc62abcf8b93448e6f68bf3a9346a Mon Sep 17 00:00:00 2001
From: Patrick Keist
Date: Thu, 9 May 2019 15:49:45 +0200
Subject: [PATCH] Fixed StoredProcedure LogMessageAdd
---
MySQL/Skript_DDL.sql | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/MySQL/Skript_DDL.sql b/MySQL/Skript_DDL.sql
index 924b48d..e2ce310 100644
--- a/MySQL/Skript_DDL.sql
+++ b/MySQL/Skript_DDL.sql
@@ -243,14 +243,14 @@ DELIMITER ;
DELIMITER //
CREATE PROCEDURE LogMessageAdd
(
- IN device_id INT, log_level ENUM('Low','Middle','High'), logMessageInsert VARCHAR(255)
+ IN i_pod VARCHAR(1000), i_hostname VARCHAR(45), i_severity INT, i_message VARCHAR(1000)
)
BEGIN
- INSERT INTO log ( device_fk, `timestamp`, logMessage, `level`, is_acknowledged)
+ INSERT INTO v_logentries ( pod, timestamp, hostname, severity, message)
VALUE
- (device_id, timestamp(now()), logMessageInsert, log_level, 0);
+ (i_pod, timestamp(now()), i_hostname, i_severity, i_message);
END //
DELIMITER ;