From: Werner Hahn Date: Tue, 26 Sep 2017 15:00:23 +0000 (+0200) Subject: WebshopApi: Fehlerhaftes Updatescript berichtigt X-Git-Tag: release-3.5.4~756 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=35617a68898e491aec8cdc12a8036b1632030bf2;p=kivitendo-erp.git WebshopApi: Fehlerhaftes Updatescript berichtigt --- diff --git a/sql/Pg-upgrade2/shop_orders_update_1.sql b/sql/Pg-upgrade2/shop_orders_update_1.sql index b5f205dbd..e87b40ef3 100644 --- a/sql/Pg-upgrade2/shop_orders_update_1.sql +++ b/sql/Pg-upgrade2/shop_orders_update_1.sql @@ -12,7 +12,7 @@ CREATE OR REPLACE FUNCTION update_shop_orders_on_delete_oe() RETURNS TRIGGER AS BEGIN UPDATE shop_orders SET oe_trans_id = NULL WHERE oe_trans_id = OLD.id; - RETURN OLD.id; + RETURN OLD; END; $$ LANGUAGE plpgsql;