|
|
@ -86,7 +86,7 @@ select count(*) from rpta_resultset where uniquename='sos_stud_astat'; |
|
|
|
] |
|
|
|
] |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
---ab hier nicht mehr ändern: |
|
|
|
---ab hier nicht mehr ändern: |
|
|
|
|
|
|
|
|
|
|
|
CREATE temp TABLE tmp_rpta_column |
|
|
|
CREATE temp TABLE tmp_rpta_column |
|
|
|
( |
|
|
|
( |
|
|
@ -209,7 +209,10 @@ and L.uniquename='${rpta_column_layout.uniquename}' |
|
|
|
) |
|
|
|
) |
|
|
|
; |
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
select * into temp tmp_rpta_column2 from tmp_rpta_column ; |
|
|
|
select * into temp tmp_rpta_column2 |
|
|
|
|
|
|
|
from tmp_rpta_column T |
|
|
|
|
|
|
|
where (resultset_id,uniquename) not in |
|
|
|
|
|
|
|
(select resultset_id,uniquename from rpta_column); |
|
|
|
|
|
|
|
|
|
|
|
INSERT INTO rpta_column |
|
|
|
INSERT INTO rpta_column |
|
|
|
(resultset_id, |
|
|
|
(resultset_id, |
|
|
@ -234,11 +237,9 @@ resultset_id, |
|
|
|
is_aggregate, |
|
|
|
is_aggregate, |
|
|
|
description, |
|
|
|
description, |
|
|
|
0 as custom |
|
|
|
0 as custom |
|
|
|
from tmp_rpta_column |
|
|
|
from tmp_rpta_column2; |
|
|
|
where (resultset_id,uniquename) not in |
|
|
|
|
|
|
|
(select T.resultset_id,T.uniquename |
|
|
|
--evtl. neuen Satz einfügen, dann alle updaten |
|
|
|
from tmp_rpta_column2 T) |
|
|
|
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
update rpta_column set ( caption, |
|
|
|
update rpta_column set ( caption, |
|
|
|
srcfieldname, |
|
|
|
srcfieldname, |
|
|
@ -260,7 +261,7 @@ update rpta_column set ( caption, |
|
|
|
where custom=0 |
|
|
|
where custom=0 |
|
|
|
and (resultset_id,uniquename) in |
|
|
|
and (resultset_id,uniquename) in |
|
|
|
(select T.resultset_id,T.uniquename |
|
|
|
(select T.resultset_id,T.uniquename |
|
|
|
from tmp_rpta_column2 T) |
|
|
|
from tmp_rpta_column T) |
|
|
|
; |
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
drop table tmp_rpta_column2; |
|
|
|
drop table tmp_rpta_column2; |
|
|
@ -289,4 +290,3 @@ drop table tmp_rpta_column; |
|
|
|
drop TABLE tmp_rpta_column_layout; |
|
|
|
drop TABLE tmp_rpta_column_layout; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|