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: Callbacks
Date: Apr 24 1998 12:52AM

Roger Hall writes:
 > 
 > Hi,
 > 
 > In the following code,
 > 
 > ct_callback(CS_SERVERMSG_CB, "server_cb");
 > 
 > sub server_cb {
 >     my($cmd, $number, $severity, $state, $line, $server, $proc, $msg) = @_;
 > 
 > ...
 > 
 > }
 > 
 > Can anyone tell me what $cmd is used for ?

You can use it to get extended error information (it will tell you
which index caused a duplicate insert error, for example).

You should also be able to access the database handle's attributes via 
$cmd->{}

Michael
-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@datamig.com    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com