[Lada-commits] [PATCH] Declared variable in db function set_ort_id

Wald Commits scm-commit at wald.intevation.org
Wed Nov 16 17:02:26 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1479312142 -3600
# Node ID 612107caf96185148177424ad862040f86db42f2
# Parent  047a27138af6052425e740efb2d95d4560bf8e73
Declared variable in db function set_ort_id.

diff -r 047a27138af6 -r 612107caf961 db_schema/stammdaten_schema.sql
--- a/db_schema/stammdaten_schema.sql	Wed Nov 16 15:59:24 2016 +0100
+++ b/db_schema/stammdaten_schema.sql	Wed Nov 16 17:02:22 2016 +0100
@@ -17,6 +17,7 @@
 CREATE FUNCTION set_ort_id() RETURNS trigger
     LANGUAGE plpgsql
     AS $$
+    DECLARE value text;
     BEGIN
         value = '#'::text || lpad((NEW.id::character varying)::text, 9, '0'::text);
         IF NEW.ort_id IS NULL THEN


More information about the Lada-commits mailing list