cube bug accepting -.1 - Mailing list pgsql-bugs

From Bruno Wolff III
Subject cube bug accepting -.1
Date
Msg-id 20020827145819.GA14643@wolff.to
Whole thread Raw
Responses Re: cube bug accepting -.1  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: cube bug accepting -.1  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: cube bug accepting -.1  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-bugs
The lex scanner for the cube package has an apparent error in its
pattern for matching floating point numbers. It doesn't except cases
where there is no digit between a sign and a decimal point. For example
-.1 is not matched by the pattern.

I have attached a patch to cubeparse.l and the regression differences.

P.S. I still plan to submit enhancement patches for cube before the
end of the week, but as this is a bug fix I thought it should really
go in separately.

Attachment

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #749: one NULL function parameter makes all other NULL
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #750: dumping/restoring database with custom languages does not work