|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: Wrong object type in Server message callback
Date: Aug 9 2002 5:12AM
On Thu, 2002-08-08 at 09:11, abe.crabtree@citicorp.com wrote:
>
>
> We have a package that ISA Sybase::sybperl, which installs callback functions:
>
> Sybase::Simple::ct_callback(CS_SERVERMSG_CB, \&serverCBH);
>
>
> and
>
> sub serverCBH
> {
> my ($dbh, $number, $severity, $state, $line, $server, $proc, $msg) = @_;
>
> .
>
>
>
> This is fine for the most part, but it seems that if a message has extended
> error information (e.g. attempting to insert NULL into a NOT NULL column, or
> violating a unique index,) $dbh does not reference our derived class, rather
> Sybase::CTLib (I can see this by using the ref function.)
I think that this is a bug in the Sybase::CTlib code (in CTlib.xs) where
the class is hard coded.
Could you post that as a bug at http://www.peppler.org/cgi-bin/bug.cgi
please?
Thanks,
Michael (currently at TechWave ...)
--
Michael Peppler / mpeppler@peppler.org / http://www.mbay.net/~mpeppler
mpeppler@zetatools.com / ZetaTools, Inc / http://www.zetatools.com
ZetaTools: Call perl functions as Sybase stored procedures!
|