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 Peppler -||- Data Migrations Inc.
email@example.com -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: firstname.lastname@example.org