[Lada-commits] [PATCH 2 of 2] Fix broken array and improve readability of function definition

Wald Commits scm-commit at wald.intevation.org
Fri Mar 17 13:01:10 CET 2017


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1489752031 -3600
# Node ID 1a3e86f4d7683c8881b80d92796c2b98850315c1
# Parent  b5ab25b7ac2c4f586ae0493063ef9c63210183c5
Fix broken array and improve readability of function definition.

diff -r b5ab25b7ac2c -r 1a3e86f4d768 db_schema/audit.sql
--- a/db_schema/audit.sql	Fri Mar 17 12:52:23 2017 +0100
+++ b/db_schema/audit.sql	Fri Mar 17 13:00:31 2017 +0100
@@ -121,7 +121,13 @@
 SECURITY DEFINER
 SET search_path = land, public;
 
-CREATE OR REPLACE FUNCTION audit_table(target_table regclass, audit_rows boolean, audit_query_text boolean, ignored_cols text[]) RETURNS void AS $body$
+CREATE OR REPLACE FUNCTION audit_table(
+    target_table regclass,
+    audit_rows boolean,
+    audit_query_text boolean,
+    ignored_cols text[]
+) RETURNS void AS
+$body$
 DECLARE
   stm_targets text = 'INSERT OR UPDATE OR DELETE OR TRUNCATE';
   _q_txt text;
@@ -215,7 +221,8 @@
 
 
 SELECT audit_table('probe', true, false, '{id, tree_modified, letzte_aenderung}'::text[]);
-SELECT audit_table('messung', true, false, '{id,, tree_modified, letzte_aenderung, status}'::text[]);
+SELECT audit_table('messung', true, false,
+    '{id, tree_modified, letzte_aenderung, status}'::text[]);
 SELECT audit_table('messwert', true, false, '{id, tree_modified, letzte_aenderung}'::text[]);
 SELECT audit_table('kommentar_p', true, false, '{id, tree_modified, letzte_aenderung}'::text[]);
 SELECT audit_table('kommentar_m', true, false, '{id, tree_modified, letzte_aenderung}'::text[]);


More information about the Lada-commits mailing list