DataObjects/Core_notify_recur.php
[Pman.Core] / DataObjects / core_functions.sql
index 58450f4..d35ce1e 100644 (file)
@@ -30,4 +30,8 @@ BEGIN
     END $$
 DELIMITER ;
 
--- usage: SELECT core_enum_seqmax_update(DISTINCT(etype)) FROM core_enum;
\ No newline at end of file
+-- usage: SELECT core_enum_seqmax_update(DISTINCT(etype)) FROM core_enum;
+DROP TABLE IF EXISTS core_enum_tmp;
+CREATE TEMPORARY TABLE core_enum_tmp SELECT DISTINCT(etype) FROM core_enum;
+SELECT core_enum_seqmax_update(etype) FROM core_enum_tmp;
+DROP TABLE IF EXISTS core_enum_tmp;
\ No newline at end of file