Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14343

Community Auth - no grant for TRIGGER

$
0
0
Attempting to set up an application that can be used on any standard web hosting system. Most don't allow TRIGGER as a grant access to mysql. Is there a work around for this statement?

delimiter $$
DROP TRIGGER IF EXISTS ca_passwd_trigger ;
$$
CREATE TRIGGER ca_passwd_trigger BEFORE UPDATE ON users
FOR EACH ROW
BEGIN
    IF ((NEW.passwd <=> OLD.passwd) = 0) THEN
        SET NEW.passwd_modified_at = NOW();
    END IF;
END;$$
delimiter ;

Viewing all articles
Browse latest Browse all 14343

Trending Articles