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 MBAY dot NET>
Subject: Re: dbmsghandle's $db - what is it?
Date: Oct 30 1997 8:54PM

Michael Peppler wrote:
> 
> David C Worenklein wrote:
> >
> > If you call a method and it causes the message handler to be invoked,
> > the database handle passed to the message handler is NOT the same
> > one that called the method.
> 
> This is a known problem.
> 
> But I've fixed it for the upcoming 2.09 release. You can take a look
> at how things are in the 2.08_50 release that is available from
> my homepage.

I should also say that in the current (2.08 and before) implementation,
the $dbh parameter passed to an error or message callback is a 
non-blessed reference to a hash, so you can do things like

	$string = Sybase::DBlib::dbstrcpy($dbh);

but not

	$string = $dbh->dbstrcpy

in a message handler, and the attributes are not available.

Michael
-- 
Michael Peppler       -||-  Data Migrations Inc.
mpeppler@datamig.com  -||-  http://www.mbay.net/~mpeppler