Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: bcp via Sybase::DBlib - seg faults and error catching
Date: Sep 12 2002 1:50PM
On Thu, 2002-09-12 at 06:37, Peter Sinnott wrote:
> On Thu, Sep 12, 2002 at 03:02:43AM -0700, email@example.com wrote:
> > > With 4 the sendrow goes ok and the first 3 elements get inserted. I can't
> > > see any indication anything has gone wrong but when I call bcp_done I
> > > get a seg fault.
> > That's a bug - probably an off-by-one error in the C code.
> For the case of sendrow with an array reference the problem seems
> to be that the return from av_len is being used as the size of the array
> in question but according to perlguts it's the highest index in the
> array. I was kinda expecting the length myself until I checked the pod.
Oops! I'll go back and check the code (and fix as appropriate!)
> Hope you are having a nice vacation and that you are getting a little
> more sun than we are getting here in sunny Ireland.
I was in the UK last week - and we had some pretty decent weather. I've
not had the pleasure of visiting Ireland yet...
Michael Peppler / firstname.lastname@example.org / http://www.mbay.net/~mpeppler
email@example.com / ZetaTools, Inc / http://www.zetatools.com
ZetaTools: Call perl functions as Sybase stored procedures!