LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Segmentation fault using DBD:Sybase function bind_param_inout (https://www.linuxquestions.org/questions/programming-9/segmentation-fault-using-dbd-sybase-function-bind_param_inout-937744/)

Newbie0520 04-02-2012 03:40 PM

Segmentation fault using DBD:Sybase function bind_param_inout
 
Hi,

I've installed the DBD::Sybase module and FreeTDS driver and everything seems to work fine except the function "$sth->bind_param_inout". I get a segmentation fault in my implementation. I was wondering if anybody else came into this problem. I have an excerpt of the code below.

my $sth = $DB->{DBC}->prepare('EXECUTE OURDB.dbo.OURSTOREDPROC ?,? OUTPUT');
$sth->bind_param(1, 'AM%');
$sth->bind_param_inout(2, \$recCount, 4, DBI::SQL_INTEGER);
$sth->execute();

while (my $rec = $sth->fetchrow_hashref() )
{
print $rec->{COMPANY_NAME} . "\n";
}

print $recCount;

Thanks,


All times are GMT -5. The time now is 08:51 AM.