MOVED mysql/core_notify_recur_trigger_core_before_insert.sql to mysql/core_notify_rec...
authorAlan Knowles <alan@roojs.com>
Thu, 16 Apr 2015 05:30:10 +0000 (13:30 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 16 Apr 2015 05:30:10 +0000 (13:30 +0800)
mysql/core_notify_recur_trigger_core_before_insert_method_id.sql [new file with mode: 0644]

diff --git a/mysql/core_notify_recur_trigger_core_before_insert_method_id.sql b/mysql/core_notify_recur_trigger_core_before_insert_method_id.sql
new file mode 100644 (file)
index 0000000..f57d202
--- /dev/null
@@ -0,0 +1,26 @@
+
+
+
+core_notify_recur_trigger_core_before_insert
+
+
+
+DROP PROCEDURE IF EXISTS core_notify_recur_trigger_core_before_insert;
+
+DELIMITER $$
+CREATE PROCEDURE core_enum_trigger_check (i_etype VARCHAR(128) , i_id INT)
+ BEGIN
+    DECLARE v_cnt INT;
+    SET v_cnt = 0;
+    -- should this check active???
+    
+    SELECT count(*) INTO v_cnt FROM core_enum WHERE etype = i_etype AND  id = i_id;
+    
+    IF (v_cnt < 1) THEN
+        UPDATE `Core Enum Does not exist` SET x = 1;
+    END IF;
+ END;
+$$
+
+DELIMITER ;