Skip site navigation (1) Skip section navigation (2)

Re: Unsigned ints (Help)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adriaan Joubert <a(dot)joubert(at)albourne(dot)com>
Cc: Postgresql <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Unsigned ints (Help)
Date: 2001-03-28 16:09:28
Message-ID: 18296.985795768@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Adriaan Joubert <a(dot)joubert(at)albourne(dot)com> writes:
> Uggh, this needs some help. I've got the problem that I can insert a
> value bigger than MAXINT into an int8 column, but when I try to do the
> same for a uint4 column, the parser coerces it into an int4, as in:

See past discussions about appropriate handling of unlabeled numeric
constants.  This is a tricky area that needs a thoroughgoing rethink.
If you go into it with only "fix uint4" in mind then you will almost
certainly make things worse.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Thomas SwanDate: 2001-03-28 16:55:35
Subject: Re: Feature Request: ALTER FUNCTION (or something like that)
Previous:From: Thomas LockhartDate: 2001-03-28 15:53:08
Subject: Re: Unsigned ints (Help)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group