altocompta/html/admin/sql/mod1/function.sql
sparkyx 53234e02f3 NEW :
In order to get easier the installation and the upgrade of the database
a new module webbased has been created, the old version of install.sh
is now obsolete
2005-02-06 01:05:14 +00:00

19 lines
446 B
PL/PgSQL

-- 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;