Fixed the regression with the map, and two issues in autogenerated code

This commit is contained in:
Simon Brooke 2018-07-04 00:14:28 +01:00
parent 3a49e50a51
commit ff5c78d030
42 changed files with 668 additions and 320 deletions

View file

@ -25,8 +25,8 @@
CREATE FUNCTION compute_locality() RETURNS trigger AS $compute_locality$
BEGIN
NEW.locality = (10000 * floor (NEW.latitude * 1000)) -
(NEW.longitude * 1000);
NEW.locality = (1000 * floor(NEW.latitude * 100)) -
floor(NEW.longitude * 100);
RETURN NEW;
END;
$compute_locality$ LANGUAGE plpgsql;