RC -205

[email protected]
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Message-ID <[email protected]>
Hi,
 
This is my code.  The truncate works just fine but the return code is  always 
-205.  Where is my error?
 
Thanks
 
sub truncate_table($$) {
my $dbh = shift;
my  $tablename = shift;
if ($tablename !~  /TESTLERG6$/) {
($dbh->ct_sql  (<<GO));
truncate table  $tablename
GO
print "Return_Code is ($dbh->{RC})\n" if  $debug;
return $dbh->{RC}; 
} else  {
($dbh->ct_sql (<<GO));
truncate table  $tablename
GO
($dbh->ct_sql  (<<GO));
truncate table  TESTLERG6_Shadow
GO
print "Return_Code is ($dbh->{RC})\n"  if $debug;
return $dbh->{RC};  
}

}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.