dbTalk Databases Forums  

[BUGS] BUG #1272: text + numeric wrong behaviour

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1272: text + numeric wrong behaviour in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1272: text + numeric wrong behaviour - 09-29-2004 , 04:53 AM







The following bug has been logged online:

Bug reference: 1272
Logged by: Damjan Pipan

Email address: damjan.pipan (AT) xlab (DOT) si

PostgreSQL version: 7.3.2

Operating system: linux 2.4

Description: text + numeric wrong behaviour

Details:

CREATE TABLE a1(
description text,
amount numeric(9,2)
);

INSERT INTO a1 VALUES ('asdasd', 370);
SELECT * FROM a1;

SELECT description::varchar, amount FROM a1;

first select does not return amount, second does.




---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #1272: text + numeric wrong behaviour - 09-29-2004 , 10:43 AM






"PostgreSQL Bugs List" <pgsql-bugs (AT) postgresql (DOT) org> writes:
Quote:
first select does not return amount, second does.
Huh? I get

regression=# SELECT * FROM a1;
description | amount
-------------+--------
asdasd | 370.00
(1 row)

regression=# SELECT description::varchar, amount FROM a1;
description | amount
-------------+--------
asdasd | 370.00
(1 row)

on both 7.3 and current ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


Reply With Quote
  #3  
Old   
Damjan Pipan
 
Posts: n/a

Default Re: [BUGS] BUG #1272: text + numeric wrong behaviour - 10-01-2004 , 08:38 AM



Sorry,

I believe it is bug in pgadmin II.

First you get no amount and when you press refresh on table or query
result is OK.

I found out this 10 min after I have posted bug and did not know where to reply to my bug report.

Damjan



Quote:
-----Original Message-----
From: Tom Lane [mailto:tgl (AT) sss (DOT) pgh.pa.us]
Sent: Wednesday, September 29, 2004 5:38 PM
To: Damjan Pipan
Cc: pgsql-bugs (AT) postgresql (DOT) org
Subject: Re: [BUGS] BUG #1272: text + numeric wrong behaviour

"PostgreSQL Bugs List" <pgsql-bugs (AT) postgresql (DOT) org> writes:
first select does not return amount, second does.

Huh? I get

regression=# SELECT * FROM a1;
description | amount
-------------+--------
asdasd | 370.00
(1 row)

regression=# SELECT description::varchar, amount FROM a1;
description | amount
-------------+--------
asdasd | 370.00
(1 row)

on both 7.3 and current ...

regards, tom lane


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.