From dd28cfe47f737a216af3709cc4da16a2614792b5 Mon Sep 17 00:00:00 2001 From: battilo Date: Fri, 23 Nov 2018 22:57:19 +0100 Subject: [PATCH] chiusura se nno channels din ain etc --- LoadCSVData.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LoadCSVData.pl b/LoadCSVData.pl index b307c5e..c8e6000 100644 --- a/LoadCSVData.pl +++ b/LoadCSVData.pl @@ -140,7 +140,7 @@ sub trxelab { ) or die getTimeStamp("log") . " - pid $$ >> $DBI::errstr"; $sth->execute(); - if ( $sth->rows < 0 ) { + if ( $sth->rows eq 0 ) { die getTimeStamp("log") . " - pid $$ >> No unit ftp params selected.\n"; }else { while ( my $results = $sth->fetchrow_hashref ) { @@ -245,7 +245,7 @@ sub getNodesType { $sth->execute(); print getTimeStamp("log"). " - pid $$ >> $unit - $tool: " . $sth->rows . " rows selected to get node type/Ain/Din/channels.\n"; - if ( $sth->rows < 0 ) { + if ( $sth->rows eq 0 ) { die getTimeStamp("log") . " - pid $$ >> No node channels selected.\n"; }else { my $row = 0; @@ -272,7 +272,7 @@ sub getUdbPwd { or die getTimeStamp("log") . " - pid $$ >> $DBI::errstr"; $sth->execute(); - if ( $sth->rows < 0 ) { + if ( $sth->rows eq 0 ) { die getTimeStamp("log") . " - pid $$ >> No password selected.\n"; }else { my $results = $sth->fetchrow_hashref; @@ -301,7 +301,7 @@ sub getMatlabCmd { ) or die getTimeStamp("log") . " - pid $$ >> $DBI::errstr"; $sth->execute(); - if ( $sth->rows < 0 ) { + if ( $sth->rows eq 0 ) { die getTimeStamp("log"). " - pid $$ >> No tool's matlab function selected.\n"; }else { while ( my $results = $sth->fetchrow_hashref ) {