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

Re: [RFC] Unsigned integer support.

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>,"Gregory Stark" <stark(at)enterprisedb(dot)com>
Cc: "Ryan Bradetich" <rbradetich(at)gmail(dot)com>,<pgsql-hackers(at)postgresql(dot)org>,"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: [RFC] Unsigned integer support.
Date: 2008-07-25 17:20:37
Message-ID: 4889C515.EE98.0025.0@wicourts.gov (view raw or flat)
Thread:
Lists: pgsql-hackers
>>> Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote: 
 
> consider
> 
> alvherre=# select 0.42 + 1;
>  ?column? 
> ----------
>      1.42
> (1 ligne)
> 
> However, it would be neat if this behaved the same as
> 
> alvherre=# select '0.42' + 1;
> ERROR:  invalid input syntax for integer: "0.42"
> STATEMENT:  select '0.42' + 1;
 
I wouldn't want the former to fail.
 
I also wouldn't like these to fail:
 
select 5000000000 + 1;
select 'abc'::text || 'def'::varchar(3);
 
-Kevin

In response to

Responses

pgsql-hackers by date

Next:From: Alvaro HerreraDate: 2008-07-25 17:24:25
Subject: Re: [RFC] Unsigned integer support.
Previous:From: Simon RiggsDate: 2008-07-25 17:09:15
Subject: Re: Transaction-controlled robustness for replication

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