Re: [HACKERS] Current CVS has strange parser for float type

2002-10-19 Thread Teodor Sigaev
Peter Eisentraut wrote: Teodor Sigaev writes: wow=# select 5.3::float; ERROR: Bad float8 input format '5.3' Does it accept '5,4'::float? Yes, it accepted '5,4'::float format. -- Teodor Sigaev [EMAIL PROTECTED] ---(end of broadcast)---

Re: [HACKERS] Current CVS has strange parser for float type

2002-10-18 Thread Peter Eisentraut
Teodor Sigaev writes: > wow=# select 5.3::float; > ERROR: Bad float8 input format '5.3' Does it accept '5,4'::float? Try running initdb with --locale=C. -- Peter Eisentraut [EMAIL PROTECTED] ---(end of broadcast)--- TIP 1: subscribe and unsu

Re: [HACKERS] Current CVS has strange parser for float type

2002-10-17 Thread Tom Lane
Hannu Krosing <[EMAIL PROTECTED]> writes: > On Thu, 2002-10-17 at 23:34, Teodor Sigaev wrote: >> wow=# select 5.3::float; >> ERROR: Bad float8 input format '5.3' > Could it be something with locales ? Oooh, bingo! On HPUX: regression=# select 5.3::float; float8 5.3 (1 row) regres

Re: [HACKERS] Current CVS has strange parser for float type

2002-10-17 Thread Bruce Momjian
Tom Lane wrote: > I think this is a consequence of the changes made a little while back > (by Peter IIRC?) in locale handling. It used to be that we deliberately > did *not* allow any LC_ setting except LC_MESSAGES to actually take > effect globally in the backend, and this sort of problem is exac

Re: [HACKERS] Current CVS has strange parser for float type

2002-10-17 Thread Hannu Krosing
On Thu, 2002-10-17 at 23:34, Teodor Sigaev wrote: > wow=# select 5.3::float; > ERROR: Bad float8 input format '5.3' Could it be something with locales ? Try: select 5,3::float; - Hannu ---(end of broadcast)--- TIP 5: Have you chec

Re: [HACKERS] Current CVS has strange parser for float type

2002-10-17 Thread Bruce Momjian
Works here: test=> select 5.3::float; float8 5.3 (1 row) --- Teodor Sigaev wrote: > wow=# select 5.3::float; > ERROR: Bad float8 input format '5.3' > wow=# sel