|
|
@ -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,10 +209,7 @@ and L.uniquename='${rpta_column_layout.uniquename}' |
|
|
|
) |
|
|
|
) |
|
|
|
; |
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
select * into temp tmp_rpta_column2 |
|
|
|
select * into temp tmp_rpta_column2 from tmp_rpta_column ; |
|
|
|
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, |
|
|
@ -237,9 +234,11 @@ resultset_id, |
|
|
|
is_aggregate, |
|
|
|
is_aggregate, |
|
|
|
description, |
|
|
|
description, |
|
|
|
0 as custom |
|
|
|
0 as custom |
|
|
|
from tmp_rpta_column2; |
|
|
|
from tmp_rpta_column |
|
|
|
|
|
|
|
where (resultset_id,uniquename) not in |
|
|
|
--evtl. neuen Satz einfügen, dann alle updaten |
|
|
|
(select T.resultset_id,T.uniquename |
|
|
|
|
|
|
|
from tmp_rpta_column2 T) |
|
|
|
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
update rpta_column set ( caption, |
|
|
|
update rpta_column set ( caption, |
|
|
|
srcfieldname, |
|
|
|
srcfieldname, |
|
|
@ -261,7 +260,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_column T) |
|
|
|
from tmp_rpta_column2 T) |
|
|
|
; |
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
drop table tmp_rpta_column2; |
|
|
|
drop table tmp_rpta_column2; |
|
|
@ -290,3 +289,4 @@ drop table tmp_rpta_column; |
|
|
|
drop TABLE tmp_rpta_column_layout; |
|
|
|
drop TABLE tmp_rpta_column_layout; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|