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: Connection to a server from a subroutine
Date: May 20 1999 2:34PM

Alain Trembleau writes:
 > i.e. the database connection is performed within the runsql subroutine.
 > 
 > What happens is that it crashes the second time runsql is called, giving
 > 
 > the following error:
 > 
 > Open Client Message:
 > Message number: LAYER = (1) ORIGIN = (1) SEVERITY = (1) NUMBER = (129)
 > Message String: ct_bind(): user api layer: external error: An invalid
 > locale was supplied in the CS_DATAFMT structure.
 > ct_bind() failed at /usr/lib/perl5/site_perl/SybTools.pm line 97.
 > 

There was a bug in the DESTROY() function of 2.10, which I believe is
fixed in 2.10_02. The entire process shares a single CS_LOCALE struct, 
and I was mistakenly dropping it in DESTROY().

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