LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-02-2012, 03:40 PM   #1
Newbie0520
LQ Newbie
 
Registered: May 2008
Posts: 8

Rep: Reputation: 0
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,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] can't install DBD::Sybase produces error Majed17 Linux - Software 13 11-07-2013 10:11 AM
DBD::Sybase cgi script ashok.g Programming 2 07-20-2010 01:34 AM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
segmentation fault samprabhu Linux - General 3 07-29-2005 07:17 PM
segmentation fault w/ c++ function call wsimmons Programming 3 10-16-2001 02:06 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration