x user diversi da asega forzo table = RAWDATACOR

This commit is contained in:
2017-09-19 00:16:14 +02:00
parent 700afdbbb4
commit 74e9ff5fe6

View File

@@ -77,11 +77,15 @@ sub writeOutSql {
print SQLOUT @sql;
@sql = ();
print SQLOUT "/* unlock table */\nUNLOCK TABLES;\n";
if ( $table eq 'RAWDATA' ) {
print SQLOUT "/* call stored procedure to copy in "
. $db_sp
. "*/\ncall "
. $db_sp
. ".CopyAndFill('$tn');\n";
}
close SQLOUT
or die( getTimeStamp("log")
. " - pid $$ >> Error in closing file "
@@ -332,6 +336,7 @@ if ( $db_name ne 'asega' ) {
$db_sp = $db_name;
getUdbPwd();
$db_lar = $db_name;
$table = "RAWDATACOR";
}
else {
$db_name = 'ase_mums';