|
|
sybperl-l Archive
Up Prev Next
From: =?iso-8859-1?Q?M=E1rcio_Paulo_Guedes?= <mpguedes at uol dot com dot br>
Subject: Problems after installing MS SQLServer service pack 3
Date: Feb 9 2001 8:58PM
After installing MS SQLServer service pack 3, my perl programs doesn't
work anymore. After run a very simple perl program like this:
#!/usr/local/bin/perl -w
use strict;
use Sybase::CTlib;
my $dbh = new Sybase::CTlib 'sa','','ctgf_n2';
my $restype;
my @rows;
$dbh->ct_execute("select * from bobinas..qui_tanques order by tanque");
while($dbh->ct_results($restype) == CS_SUCCEED) {
next unless $dbh->ct_fetchable($restype);
while(@rows = $dbh->ct_fetch) {
print "$rows[0]\n";
}
}
system says me:
Can't call method "ct_execute" on an undefined value at ./sp3.pl line 7.
I'm using sybperl 2.13 in RedHat 6 linux machine, with Freetds 0.50
Márcio Paulo Guedes
mpguedes@uol.com.br
|