|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Preserving SQL for display from callback
Date: Dec 1 1998 2:53PM
Mike Lucente writes:
> In an earlier post you suggested ...
>
> "You can write a small module that overloads ct_execute(), and use that in
> place of Sybase::CTlib. That module could be as simple as ...
>
>
>
> Now in the error handler you should be able to refer to $cmd->{SQL} to
> get the SQL string."
>
> I tried that and was looking good until I tried to retrieve $cmd->{SQL}
> within my callback routine. It appears, however, that CTlib.c does not
> return the connection handle:
>
> (LINE 1505 in CTlib.c, v2.09):
> else
> XPUSHs(&sv_undef);
2.09 didn't do a good job of passing the connection handle to the
callbacks. Get 2.10 and things should work a lot better.
Michael
--
Michael Peppler -||- Data Migrations Inc.
mpeppler@mbay.net -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com
|