|
|
sybperl-l Archive
Up Prev Next
From: David Carter <david at SOLBORS dot NO>
Subject: Re: Sybase::CTlib.pm
Date: May 7 1998 3:50PM
Hi,
> You need to set $ENV{SYBASE} in a BEGIN block.
Interestingly, in an ePerl script I just have:
$ENV{'SYBASE'}="/blah/blah/sybase";
$ENV{'DSQUERY'}="blah";
use Apache::Sybase::CTlib;
.....
And this works fine. I grabbed Apache::Sybase::CTlib from a dicussion
list. I couldn't find an "official" release (as per Apache::Sybase::DBlib
in the module Apache-contrib) and was wondering about this as I've had to
comment out the lines:
&ct_callback(CS_CLIENTMSG_CB, \&msg_cb);
&ct_callback(CS_SERVERMSG_CB, "srv_cb");
These write to STDERR which causes ePerl to die, even though the reports
are actually saying something positive (e.g. "database changed to.....").
Anyone got any more experience of Apache::Sybase::CTlib? (Tried open
(STDERR, "file.txt") - that didn't work :-)
What we need is something that will keep ~ 50 connections open at all
times and handles requests by using idle connections. I'm looking at
writing something myself if nothing is out there.
Many Regards,
David.
SOL Børs A/S.
|