我正在嘗試創建自己的StandardError異常,但似乎無法通過提升來解除rescue_from。錯誤提出,但從未獲救。我建了一個簡單的應用程序來試試吧,如下: class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
class Applicati
我的觸發器中的RAISE函數存在小問題。這是我的SQLite代碼: CREATE TRIGGER CheckingDate
BEFORE INSERT ON MyTable
FOR EACH ROW
WHEN NEW.Start_date > NEW.End_date
BEGIN
RAISE(ABORT, 'End_date must be in the future');
END;