Hello everybody !

Michael, thanks for helping once again !
This is in reference to my older posting on DBI protection fault problem
(see below).

>Michael Peppler wrote:


>Are you using Sybase's OpenClient, or freetds?

Name : sybase-openclient Relocations:
/opt/sybase-11.9.2
Version : 11.1.1 Vendor: Sybase, Inc

>
> Which version of DBD::Sybase and perl are you using?

Perl, version 5.005_03 built for i386-linux
DBD-Sybase-0.21
DBI.pm' => '1.13 from /usr/lib/perl5/site_perl/5.005/i386-linux/DBI.pm'

>

LD_LIBRARY_PATH=:/usr/local/src/opt/sybase-11.9.2/lib
SYBASE=/usr/local/src/opt/sybase-11.9.2

>
> What does the addsa.pl script look like (or at least the section that
> fails)
>

my $sql = "insert into employee (employee_id, screen_name,
employee_password, name_first, name_last) ";
$sql .= "values ('NEXT1', '".$login."', '".$emp_passwd."',
'".$first_name."', '".$last_name."') ";
my $sth = $dbh->prepare($sql);
$sth->execute;

Open client supports DB lib and CT lib calls, does it ?
I tried to use DBD-FreeTDS-0.02 (which I compiled with 4.9 )and that
just
hangs (after the insert),
SELECTS work fine though.

Thanks again,
Anatole

>
> Michael
> --
> Michael Peppler -||- Data Migrations Inc.
> mpeppler@peppler.org -||- http://www.mbay.net/~mpeppler
> Int. Sybase User Group -||- http://www.isug.com
> Sybase on Linux mailing list: ase-linux-list@isug.com

Anatole Sagal wrote:
>
> Hello !
>
> I am trying to use DBI/DBD::Sybase on a RH Linux 6.0 to connect to
> MS SQL server.
> Perl gets a segmentaion fault on an INSERT execute.
> The insert works (i.e. the server DB gets updated) and then this
> happens:
> ---------------------------------------
>
> main::(addsa.pl:28): $sth->execute;
>
> DB<1> s
> >> execute DISPATCH (DBI::st=HASH(0x83559b8) rc1/1 @1 g0
> a825c4e0) at addsa.pl line 28.
> -> execute for DBD::Sybase::st (DBI::st=HASH(0x83559b8)~0x8356a74)

> syb_st_execute() -> ct_command() OK
> syb_st_execute() -> ct_send() OK
> DBI::st::execute(/usr/lib/perl5/5.00503/Carp.pm:97):
> 97: return @_ if ref $_[0];
> ----------------------------------------
> at this point @_ = SEGV
>
> Anyone saw this before ?