[ic] gdbm bug?

Richard Seymour interchange-users@interchange.redhat.com
Tue Aug 21 21:09:01 2001


Ed LaFrance wrote:
> 
> At 12:17 PM 08/21/2001 -0700, you wrote:
> >I have this is a posters.txt database file (rows numbered for your
> >convenience):
> >---------------------------
> >   item        type                    price
> >description                     title
> >1.Rainbow-P01 Rainbow Dolphins Poster 25.00 Poster --
> >Normal                Rainbow
> >2.Rainbow-P02 Rainbow Dolphins Poster 35.00 Poster -- Hand-Signed by
> >Artist Rainbow
> >3.Eclipse-P01 Eclipse Dolphins Poster 25.00 Poster --
> >Normal                Rainbow
> >4.Eclipse-P02 Eclipse Dolphins Poster 35.00 Poster -- Hand-Signed by
> >Artist Eclipse
> >---OTHER LINES, BUT NONE WITH title=Rainbow AND NONE WITH
> >title=Eclipse---
> >
> >I have this in a page:
> >---------------------------
> >[page search="fi=posters/se=Rainbow/sf=title"]CLICK HERE[/page]
> >
> >(Rows 1,2,3 should match. I am getting three rows back.)
> >
> >Problems:
> >----------------------------
> >[item-field title] returns titles from rows 2,3,4 (not 1,2,3).
> >[item-field type] returns nothing for rows 1,3. And the correct result
> >for row 2.
> >[item-field description] returns what [item-field type] should for rows
> >1,3. And the correct results for row 2.
> >

> 
> Could be embedded carriage returns.  Try this (from the shell, in your
> products directory):
> 
> perl -i -p -e 's/\r//g' posters.txt

Thanks. But that didn't help. (GDBM file was rebuilt, but results seem
to be the same.)

-- 
Richard Seymour, Anarchy Software, Inc.
rseymour@anarchysoftware.com

The opinions expressed are those of my employer, not my own.