santoo has asked for the wisdom of the Perl Monks concerning the following question:
Hi All, I am trying to run some sql query on perl. I am not getting any error, at the same time also the result is always emty. But when I try same query on sql client I am getting data. Any idea to troubleshoot please
my $conn = $OracleSqlData::connection{$OracleSqlData::server}; $sth =$conn->prepare("select * from users"); $sth->fetchrow_array()
updated
Actually above code is within the method and that method is being called in multiple places and it will return result-set... My problem is for some method calls its returning value but for other calls its giving empty result set... its not consistent across all calls also in log I check for any error randomly I get bellow error also ORA-03113: end-of-file on communication channel Session ID: 1168 Serial number: 37417 (DBD ERROR: OCIStmtExecute)
Back to
Seekers of Perl Wisdom