Fixed the regression with the map, and two issues in autogenerated code
This commit is contained in:
parent
3a49e50a51
commit
ff5c78d030
42 changed files with 668 additions and 320 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue