gpst: %Cmd: Remove it, unused
[gpstools.git] / postgres / Patch / imginfo.patch
blobea54cddbe971de6b7333944b668e7ee21c8ec73d
1 Index: create_funcs.sql
2 ===================================================================
3 --- create_funcs.sql (revision 3188)
4 +++ create_funcs.sql (working copy)
5 @@ -132,6 +132,16 @@
6 END;
7 $$ LANGUAGE plpgsql; -- }}}
9 +CREATE OR REPLACE FUNCTION imginfo(text) RETURNS text AS $$ -- {{{
10 +DECLARE
11 + retval text;
12 +BEGIN
13 + -- SELECT date || '00' || chr(10) || coor[0]::numeric(8,5) FROM pictures where filename = $1;
14 + retval = (SELECT date || '00' from pictures where filename = $1) || E'\n';
15 + RETURN(retval);
16 +END;
17 +$$ LANGUAGE plpgsql;
19 -- loop_wayp_new(): Loop gjennom alle entryene i wayp_new og legg dem inn i systemet.
20 CREATE OR REPLACE FUNCTION loop_wayp_new() RETURNS void AS $$ -- {{{
21 DECLARE