|
|
|
|
@ -26,6 +26,7 @@ CREATE temp TABLE tmp_rpta_column_layout\
@@ -26,6 +26,7 @@ CREATE temp TABLE tmp_rpta_column_layout\
|
|
|
|
|
resultset_id integer,\ |
|
|
|
|
whereclause text,\ |
|
|
|
|
sortclause text,\ |
|
|
|
|
postprocessing text,\ |
|
|
|
|
description text,\ |
|
|
|
|
is_virtual smallint default 1\ |
|
|
|
|
);\ |
|
|
|
|
@ -38,6 +39,9 @@ whereclause,\
@@ -38,6 +39,9 @@ whereclause,\
|
|
|
|
|
<#if rpta_column_layout.sortclause?has_content>\ |
|
|
|
|
sortclause,\ |
|
|
|
|
</#if>\ |
|
|
|
|
<#if rpta_column_layout.postprocessing?has_content>\ |
|
|
|
|
postprocessing,\ |
|
|
|
|
</#if>\ |
|
|
|
|
<#if rpta_column_layout.is_virtual?has_content>\ |
|
|
|
|
is_virtual,\ |
|
|
|
|
</#if>\ |
|
|
|
|
@ -50,6 +54,9 @@ select tid,\
@@ -50,6 +54,9 @@ select tid,\
|
|
|
|
|
<#if rpta_column_layout.sortclause?has_content>\ |
|
|
|
|
'${rpta_column_layout.sortclause}',\ |
|
|
|
|
</#if>\ |
|
|
|
|
<#if rpta_column_layout.postprocessing?has_content>\ |
|
|
|
|
'${rpta_column_layout.postprocessing}',\ |
|
|
|
|
</#if>\ |
|
|
|
|
<#if rpta_column_layout.is_virtual?has_content>\ |
|
|
|
|
'${rpta_column_layout.is_virtual}',\ |
|
|
|
|
</#if>\ |
|
|
|
|
@ -139,6 +146,7 @@ insert into rpta_column_layout\
@@ -139,6 +146,7 @@ insert into rpta_column_layout\
|
|
|
|
|
resultset_id,\ |
|
|
|
|
whereclause,\ |
|
|
|
|
sortclause,\ |
|
|
|
|
postprocessing,\ |
|
|
|
|
description,\ |
|
|
|
|
is_virtual)\ |
|
|
|
|
select uniquename,\ |
|
|
|
|
@ -150,6 +158,11 @@ insert into rpta_column_layout\
@@ -150,6 +158,11 @@ insert into rpta_column_layout\
|
|
|
|
|
<#else>\ |
|
|
|
|
null::text as sortclause,\ |
|
|
|
|
</#if>\ |
|
|
|
|
<#if rpta_column_layout.postprocessing?has_content>\ |
|
|
|
|
postprocessing,\ |
|
|
|
|
<#else>\ |
|
|
|
|
null::text as postprocessing,\ |
|
|
|
|
</#if>\ |
|
|
|
|
description,\ |
|
|
|
|
is_virtual\ |
|
|
|
|
FROM tmp_rpta_column_layout T\ |
|
|
|
|
@ -158,7 +171,7 @@ where T2.uniquename=T.uniquename);\
@@ -158,7 +171,7 @@ where T2.uniquename=T.uniquename);\
|
|
|
|
|
\ |
|
|
|
|
--falls geändert, uniquename muss bleiben\ |
|
|
|
|
update rpta_column_layout\ |
|
|
|
|
set (caption, resultset_id, whereclause,sortclause, description, is_virtual)\ |
|
|
|
|
set (caption, resultset_id, whereclause,sortclause,postprocessing, description, is_virtual)\ |
|
|
|
|
= ( select caption, resultset_id,\ |
|
|
|
|
whereclause,\ |
|
|
|
|
<#if rpta_column_layout.sortclause?has_content>\ |
|
|
|
|
@ -166,6 +179,11 @@ set (caption, resultset_id, whereclause,sortclause, description, is_virtual)\
@@ -166,6 +179,11 @@ set (caption, resultset_id, whereclause,sortclause, description, is_virtual)\
|
|
|
|
|
<#else>\ |
|
|
|
|
null::text as sortclause,\ |
|
|
|
|
</#if>\ |
|
|
|
|
<#if rpta_column_layout.postprocessing?has_content>\ |
|
|
|
|
postprocessing,\ |
|
|
|
|
<#else>\ |
|
|
|
|
null::text as postprocessing,\ |
|
|
|
|
</#if>\ |
|
|
|
|
description,\ |
|
|
|
|
is_virtual\ |
|
|
|
|
FROM tmp_rpta_column_layout T\ |
|
|
|
|
|