New database files

This commit is contained in:
sparkyx 2004-10-03 15:59:30 +00:00
parent 48a47c25c0
commit 0f40a0e720
17 changed files with 3732 additions and 22 deletions

19
sql/mod1/function.sql Normal file
View file

@ -0,0 +1,19 @@
-- Name: plpgsql_call_handler (); Type: FUNCTION; Schema: public; Owner: dany
--
CREATE FUNCTION plpgsql_call_handler () RETURNS language_handler
AS '$libdir/plpgsql', 'plpgsql_call_handler'
LANGUAGE c;
-- Name: today_hour (); Type: FUNCTION; Schema: public; Owner: dany
--
CREATE FUNCTION today_hour () RETURNS text
AS '
declare
hour text ;
begin
select to_char(now(),''HHMI'') into hour;
return hour;
end;
'
LANGUAGE plpgsql;