|
|
|
@ -86,8 +86,8 @@ and L.uniquename='${rpta_column_layout.uniquename}'\
@@ -86,8 +86,8 @@ and L.uniquename='${rpta_column_layout.uniquename}'\
|
|
|
|
|
)\ |
|
|
|
|
; \ |
|
|
|
|
\ |
|
|
|
|
select * into temp tmp_rpta_column_layout_target\ |
|
|
|
|
from tmp_rpta_column_layout --tmp_ eingefügt\ |
|
|
|
|
select uniquename into temp tmp_rpta_column_layout_target\ |
|
|
|
|
from rpta_column_layout \ |
|
|
|
|
where resultset_id in (select tid\ |
|
|
|
|
FROM rpta_resultset\ |
|
|
|
|
where uniquename='${rpta_column_layout.rpta_resultset}')\ |
|
|
|
@ -106,8 +106,8 @@ insert into rpta_column_layout\
@@ -106,8 +106,8 @@ insert into rpta_column_layout\
|
|
|
|
|
whereclause,\ |
|
|
|
|
description\ |
|
|
|
|
FROM tmp_rpta_column_layout T\ |
|
|
|
|
where 0=(select count(*) from tmp_rpta_column_layout_target T2\ |
|
|
|
|
where T.uniquename=T2.uniquename);\ |
|
|
|
|
where not exists (select uniquename from tmp_rpta_column_layout_target);\ |
|
|
|
|
\ |
|
|
|
|
--falls geändert, uniquename muss bleiben\ |
|
|
|
|
update rpta_column_layout\ |
|
|
|
|
set (caption, resultset_id, whereclause, description)\ |
|
|
|
|