PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: dbcmd w/o package or object reference error
Date: Feb 1 2000 7:32PM

Robert (A) Cole writes:
 > Server `SYBASE'
 > Line 1
 >     Login failed.
 > 
 > Sybase error: Login incorrect.
 > Can't call method "dbcmd" without a package or object reference at /usr/local/lib/perl5/site_perl/Sybase/Sybperl.pm line 242.
 > 

The login fails, so dblogin() returns undef (or maybe -1), which you
don't check. Then you try to use dbcmd() without having a valid
database connection.

I agree that this could be a handled a little better...

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