dbTalk Databases Forums  

[BUGS] Silent int overflow

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


Discuss [BUGS] Silent int overflow in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim C. Nasby
 
Posts: n/a

Default [BUGS] Silent int overflow - 04-27-2004 , 06:39 PM






stats=# select 10000*1000000000, 10000*1000000000::bigint;
?column? | ?column?
------------+----------------
1316134912 | 10000000000000
(1 row)

Shouldn't the first expression throw an error instead of rolling over
silently?

Version 7.4.2 if it matters...
--
Jim C. Nasby, Database Consultant jim (AT) nasby (DOT) net
Member: Triangle Fraternity, Sports Car Club of America
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.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.