From 962620b49ab2539bdb832a6265efe631cc2181b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 15 Apr 2021 17:04:32 +0300 Subject: [PATCH] simplify invoking of `ST_SimplifyWM` --- IV/tests.sql | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/IV/tests.sql b/IV/tests.sql index 511c1ce..5b38fd9 100644 --- a/IV/tests.sql +++ b/IV/tests.sql @@ -61,31 +61,7 @@ insert into wm_figures (name, way) values ('selfcrossing-1-rev',ST_Reverse(ST_Tr -- is used for geometric assertions later in the file. drop table if exists wm_demo; create table wm_demo (name text, i bigint, way geometry); - -do $$ - declare - v_state TEXT; - v_msg TEXT; - v_detail TEXT; - v_hint TEXT; - v_context TEXT; -begin insert into wm_demo (name, way) select name, ST_SimplifyWM(way, name) from wm_figures; -exception when others then - get stacked diagnostics - v_state = returned_sqlstate, - v_msg = message_text, - v_detail = pg_exception_detail, - v_hint = pg_exception_hint, - v_context = pg_exception_context; - - raise notice E'Got exception: - state : % - message: % - detail : % - hint : % - context: %', v_state, v_msg, v_detail, v_hint, v_context; -end $$ language plpgsql; -- wm_visuals holds visual aids for the paper. drop table if exists wm_visuals;