dbTalk Databases Forums  

[BUGS] BUG #2775: Error select

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


Discuss [BUGS] BUG #2775: Error select in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mas Kus
 
Posts: n/a

Default [BUGS] BUG #2775: Error select - 11-24-2006 , 03:11 PM







The following bug has been logged online:

Bug reference: 2775
Logged by: Mas Kus
Email address: kusuma_ok (AT) telkom (DOT) net
PostgreSQL version: 7.4.1-2
Operating system: Mandrake 10.0
Description: Error select
Details:

Hello...
I'm using Mandrake 10.0 full version as my OS. And use it for my web server.
I've installed the PostgreSQL to my server. The connection to the database
is good. I try to select by :

=>select 2147*1000000;
?column?
--------------
2147000000

But, when I tried select :

=>select 2148*1000000;
?column?
------------------
-214623000

Or When I try to multiply with the number than result more than 2147000000,
the result is minus or wrong.

Can you help me why ?

Thank you.

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

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

Default Re: [BUGS] BUG #2775: Error select - 11-24-2006 , 03:48 PM






"Mas Kus" <kusuma_ok (AT) telkom (DOT) net> writes:
Quote:
But, when I tried select :

=>select 2148*1000000;
?column?
------------------
-214623000
PG releases before 8.0 don't check for overflow in integer multiplication.

regards, tom lane

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


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.