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

From Tom Lane
Subject Re: cube bug accepting -.1
Date
Msg-id 1978.1030468327@sss.pgh.pa.us
Whole thread Raw
In response to cube bug accepting -.1  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-bugs
Bruno Wolff III <bruno@wolff.to> writes:
> 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 think you got the patch reversed?  But it looks reasonable when read
the right way round ...

            regards, tom lane

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: JDBC timestamp does not understand [-]infinity
Next
From: Peter Eisentraut
Date:
Subject: Re: Bug #741: postgresql and cygwin