2000-10-31 21:11:28 +08:00
|
|
|
|
|
|
|
-- drop function digest(text, text);
|
|
|
|
-- drop function digest_exists(text);
|
2001-01-24 11:46:16 +08:00
|
|
|
-- drop function encode(text, text);
|
|
|
|
-- drop function decode(text, text);
|
|
|
|
|
2000-10-31 21:11:28 +08:00
|
|
|
|
|
|
|
CREATE FUNCTION digest(text, text) RETURNS text
|
|
|
|
AS '@MODULE_FILENAME@',
|
2000-11-21 04:36:57 +08:00
|
|
|
'digest' LANGUAGE 'C';
|
2000-10-31 21:11:28 +08:00
|
|
|
|
|
|
|
CREATE FUNCTION digest_exists(text) RETURNS bool
|
|
|
|
AS '@MODULE_FILENAME@',
|
2000-11-21 04:36:57 +08:00
|
|
|
'digest_exists' LANGUAGE 'C';
|
2000-10-31 21:11:28 +08:00
|
|
|
|
2001-01-24 11:46:16 +08:00
|
|
|
CREATE FUNCTION encode(text, text) RETURNS text
|
|
|
|
AS '@MODULE_FILENAME@',
|
|
|
|
'encode' LANGUAGE 'C';
|
|
|
|
|
|
|
|
CREATE FUNCTION decode(text, text) RETURNS text
|
|
|
|
AS '@MODULE_FILENAME@',
|
|
|
|
'decode' LANGUAGE 'C';
|
|
|
|
|