Browse Source

Kleinkram #1

master
Daniel Quathamer 4 weeks ago
parent
commit
0fc8423fd2
  1. 3
      src-modules/module/etl/bin/SQL_ENV_etl.sam
  2. 4
      src-modules/module/etl/conf/etl.xml
  3. 42
      src-modules/module/etl/upgrade/etl_upgrade_man.sql
  4. 2
      src/de/superx/elt/TableUploader.java

3
src-modules/module/etl/bin/SQL_ENV_etl.sam

@ -13,4 +13,7 @@ ETL_LOGMAIL=$LOGMAIL; export ETL_LOGMAIL @@ -13,4 +13,7 @@ ETL_LOGMAIL=$LOGMAIL; export ETL_LOGMAIL
PATH=$ETL_PFAD/bin:$PATH
export PATH
JAVA_OPTS="$JAVA_OPTS -DSUPERX_DIR=$SUPERX_DIR"
export JAVA_OPTS

4
src-modules/module/etl/conf/etl.xml

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--<!DOCTYPE module SYSTEM "../../../conf/superx-module.dtd"> -->
<module name="etl" version="0.4b" sachgebiet_id="270"
<module name="etl" version="0.4" sachgebiet_id="270"
sachgebiet="Laderoutinen" systeminfo_id="270"
system="Laderoutinen" thema="Laderoutinen" thema_parent="Abfragen">
<database name="superx" system="superx">
@ -193,6 +193,8 @@ version integer @@ -193,6 +193,8 @@ version integer
<action error="stop">
<loadtable refresh="true" delimiter="^" header="false" tabname="tmp_templates"><file path="$ETL_PFAD/schluesseltabellen/fm_templates.unl"/></loadtable>
<nativeaction sql="" scriptfile="$ETL_PFAD/schluesseltabellen/fm_templates_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$ETL_PFAD/upgrade/etl_upgrade_man.sql" database=""/>
</action>
<action error="stop">
<loadtable refresh="true" delimiter="^" header="false" tabname="etl_step_type"><file path="$ETL_PFAD/schluesseltabellen/etl_step_type.unl"/></loadtable>

42
src-modules/module/etl/upgrade/etl_upgrade_man.sql

@ -0,0 +1,42 @@ @@ -0,0 +1,42 @@
--obsolete jobs:
delete from etl_step
where tid in (select R.step_id
from etl_step_relation R, etl_job J
where R.job_id =J.tid
and J.uniquename in ('sx_select_mask',
'sx_insert_mask',
'kern_konstanten_update',
'sichten_unload',
'sos_gewichtung_unload')
and J.systeminfo_id=9);
delete from etl_step_property
where etl_step_id in (select R.step_id
from etl_step_relation R, etl_job J
where R.job_id =J.tid
and J.uniquename in ('sx_select_mask',
'sx_insert_mask',
'kern_konstanten_update',
'sichten_unload',
'sos_gewichtung_unload')
and J.systeminfo_id=9);
delete from etl_step_relation
where job_id in (select J.tid from etl_job J
where J.uniquename in ('sx_select_mask',
'sx_insert_mask',
'kern_konstanten_update',
'sichten_unload',
'sos_gewichtung_unload')
and J.systeminfo_id=9);
delete from etl_job
where uniquename in ('sx_select_mask',
'sx_insert_mask',
'kern_konstanten_update',
'sichten_unload',
'sos_gewichtung_unload')
and systeminfo_id=9;

2
src/de/superx/elt/TableUploader.java

@ -79,7 +79,7 @@ public class TableUploader { @@ -79,7 +79,7 @@ public class TableUploader {
private boolean continueAfterError;
private boolean removeTrailingDelim=true;
private boolean isPostgres;
private boolean useBatch=true;
private boolean useBatch=false;
private static int maxCols=1000;
private String[] insert_cols = new String[maxCols];
private int[] insert_types = new int[maxCols];

Loading…
Cancel
Save