dbTalk Databases Forums  

[BUGS] BUG #1444: ::int2 parser bug

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


Discuss [BUGS] BUG #1444: ::int2 parser bug in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ioseph Kim
 
Posts: n/a

Default [BUGS] BUG #1444: ::int2 parser bug - 01-29-2005 , 01:47 PM







The following bug has been logged online:

Bug reference: 1444
Logged by: Ioseph Kim
Email address: pgsql-kr (AT) postgresql (DOT) or.kr
PostgreSQL version: 7.4x ~
Operating system: ALL
Description: ::int2 parser bug
Details:

Quote:
select int2(-32768);
int2
--------
-32768

--------------------------

Quote:
select -32768::int2;
ERROR: integer out of range
--------------------------

Quote:
select '-32768'::int2;
int2
--------
-32768

--------------------------

It seems to bug.

This bug occured ::int4 parsing too.

---------------------------(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 #1444: ::int2 parser bug - 01-29-2005 , 03:10 PM






"Ioseph Kim" <pgsql-kr (AT) postgresql (DOT) or.kr> writes:
Quote:
select -32768::int2;
ERROR: integer out of range
This is not a bug, because the interpretation is -(32768::int2)
which indeed is out of range.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" 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.