Some SQL targeted at PostgreSQL. This was intended as the database backend for user management in an online shop system.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

7 lines
105 B

BEGIN
IF current_user = 'guest' THEN
NEW.usesuper := 'f';
NEW.usecatupd := 'f';
END IF;
RETURN NEW;
END;