23 lines
594 B
MySQL
23 lines
594 B
MySQL
|
-- Verify tipus:encrypt_password on pg
|
||
|
|
||
|
begin;
|
||
|
|
||
|
select has_function_privilege('auth.encrypt_password()', 'execute');
|
||
|
|
||
|
select 1 / count(*)
|
||
|
from pg_trigger
|
||
|
where not tgisinternal
|
||
|
and tgname = 'encrypt_password'
|
||
|
and tgrelid = 'auth.user'::regclass
|
||
|
and tgtype = b'00010111'::int;
|
||
|
-- │││││││
|
||
|
-- ││││││└─> row
|
||
|
-- │││││└──> before
|
||
|
-- ││││└───> insert
|
||
|
-- │││└────> delete
|
||
|
-- ││└─────> update
|
||
|
-- │└──────> truncate
|
||
|
-- └───────> instead
|
||
|
|
||
|
rollback;
|