From 284fba03acdf6e8da4d2fea88ddc0c096577c966 Mon Sep 17 00:00:00 2001 From: totoro Date: Thu, 16 Oct 2025 22:36:14 +0900 Subject: [PATCH] Revert the previous commit. This function was in use. Add a comment to replace it, because the trigger are not managed here. --- controller/hk_utils.anubis | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/controller/hk_utils.anubis b/controller/hk_utils.anubis index f65b5fd..de603d5 100644 --- a/controller/hk_utils.anubis +++ b/controller/hk_utils.anubis @@ -10,8 +10,9 @@ read xlib/web/web_arg_utils.anubis read hayamiki_lib/view/view_table_manager_types.anubis read hayamiki_lib/types/hayamiki.anubis -/* - public define Maybe(Int) + +//TODO replace that function which not call the triggers +public define Maybe(Int) update_row ( SQLite3DataBase db, @@ -32,12 +33,12 @@ read hayamiki_lib/types/hayamiki.anubis failure then failure, success(inserted_idx) then //replace_Int(_session.fields, "hk_last_insert_idx", inserted_idx); - forget(map((HK_Trigger trigger) |-> println("[update row] call trigger after update "+trigger.trigger_name+" ON table "+table_name); trigger.trigger_call_back(db, _session), *controller.triggers.after_update)); + //forget(map((HK_Trigger trigger) |-> println("[update row] call trigger after update "+trigger.trigger_name+" ON table "+table_name); trigger.trigger_call_back(db, _session), *controller.triggers.after_update)); success(inserted_idx) } } . -*/ + public define String row_show_string -- libgit2 0.21.4