|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: DBlib works in script/not in mod
Date: Apr 13 2000 9:16PM
David Hojo Hajoglou writes:
> Well, the $ENV{Sybase} is indeed set correctally. (I actually checked
> this, sorry for not indicating that). for posterity i added the line and
> the error is the same:
>
> /opt/sybase-11.9.2DB-Library error:
>
> [Thu Apr 13 15:02:27 2000] [error] Can't call method "nsql" on an
> undefined value at /usr/lib/perl5/site_perl/5.005/isoft/tw
> igauth.pm line 17.
>
> It seems to connect to the database, and then crap out. Is there any sort
> of debugging technique that I coule be using.
wrong. dblogin/new is returning undef (which is why you get the "can't
call method foo on an undefined value" error message). The undef
return value is a sign that the login failed...
Michael
>
> (This is connecting to the sybase server on the localhost)
>
> > My guess is that the SYBASE env. variable is not set correctly when
> > the modperl handler runs.
> >
> > 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
|