1 Index: postgres/create_funcs.sql
2 ===================================================================
3 --- postgres/create_funcs.sql (revisjon 2238)
4 +++ postgres/create_funcs.sql (arbeidskopi)
9 +DROP FUNCTION hvor(timestamptz);
10 +CREATE OR REPLACE FUNCTION hvor(currtime timestamptz) RETURNS SETOF timestamptz AS $$
15 + currlat numeric(9, 6);
16 + currlon numeric(9, 6);
18 + currpos = findpos(currtime);
19 + currlat = currpos[0];
20 + currlon = currpos[1];
21 + currsted = clname(currpos);
22 + currdist = cldist(currpos);
23 + SELECT currtime, currlat::text, currlon::text, currsted, currdist;
28 DROP FUNCTION wherepos(timestamptz);
29 CREATE OR REPLACE FUNCTION wherepos(currtime timestamptz) RETURNS text AS $$