Re: ARGetEntry entryId length
Brought to you by:
jeffmurphy
From: Joel M. <jm...@ca...> - 1996-02-22 00:19:17
|
> Hi there, > > I have successfully built arsperl on IRIX 6.2 (alpha), with some > very minor changes, which I think were just issues with the > latest compiler. At some point I will try compiling on 5.3 and > see if I have more fluid (change-free) luck. > > The problem I was having before (if any of you recall) was that > the version of perl was a pruned one, which did not contain all > the header files and the like, but rather only the files needed > for run-time. glad to here it works... > Anyway, on to the main topic of this particular mailing... > > in the ARGetEntry call in ARS.c, (line 1621 of the version I > have), the third argument is ``pad_entry'', which is of type > AREntryIdType, and which is set up to be padded with 0's to the > length of 15 characters. > > This probably ought to be dynamic, based on the > ARFieldLimitStruct returned by ARGetField. I have a schema with > a 10 character long entryId, and it seems that it is impossible > to get any records out of it using arsperl. Hmm, I never used entry ids other than the default 15 numeric characters so I didn't catch this one. Apparently, entry-ids can have text as well, so I just removed the zero padding hack. I'll add a ARS::pad_entryid function that will do the right amount of padding, and post a diff. |