![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
-----Original Message----- From: pgsql-bugs-owner (AT) postgresql (DOT) org [mailto gsql-bugs-owner (AT) postgresql (DOT) org]On Behalf Of Rafael VillalobosPrats Sent: Wednesday, February 18, 2004 3:38 PM To: pgsql-bugs (AT) postgresql (DOT) org Subject: [BUGS] Select (str)::FLOAT8 BUG =20 =20 Hi!, =20 I think i have found a bug. =20 I=B4ve tried it in PgSQL 7.3.5 & 7.4.1 =20 When I do: =20 atisae_oct_1=3D# SELECT (1000/500/7)::FLOAT8 as v_numero; v_numero ---------- 0 (1 row) =20 atisae_oct_1=3D# SELECT 1000/500/7::FLOAT8 as v_numero; v_numero ------------------- 0.285714285714286 (1 row) =20 atisae_oct_1=3D# SELECT (1000/500/7)::NUMERIC as v_numero; v_numero ---------- 0 (1 row) =20 atisae_oct_1=3D# SELECT 1000/500/7::NUMERIC as v_numero; v_numero ------------------------ 0.28571428571428571429 (1 row) =20 =20 Why is different: 'SELECT (xxxxx)::FLOAT8' than 'SELECT xxxxx::FLOAT8' =20 Thanks in advance... =20 Rafa. =20 ---------------------------(end of=20 broadcast)--------------------------- TIP 6: Have you searched our list archives? =20 http://archives.postgresql.org =20 |
#3
| |||
| |||
|
|
Why is different: 'SELECT (xxxxx)::FLOAT8' than 'SELECT xxxxx::FLOAT8' |
#4
| |||
| |||
|
|
I think i have found a bug. I´ve tried it in PgSQL 7.3.5 & 7.4.1 When I do: atisae_oct_1=# SELECT (1000/500/7)::FLOAT8 as v_numero; v_numero ---------- 0 (1 row) |
![]() |
| Thread Tools | |
| Display Modes | |
| |