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

Re: [RFC] Unsigned integer support.

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: Gregory Stark <stark(at)enterprisedb(dot)com>, 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:24:25
Message-ID: 20080725172425.GO9891@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-hackers
Kevin Grittner escribió:
> >>> 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.

Sorry, I was unclear.  What I meant was that both 0.42 + 1 and
'0.42' + 1 should be treated the same, and they should both produce a
numeric output.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

pgsql-hackers by date

Next:From: Andrew DunstanDate: 2008-07-25 17:25:19
Subject: Re: Do we really want to migrate plproxy and citext intoPG core distribution?
Previous:From: Kevin GrittnerDate: 2008-07-25 17:20:37
Subject: Re: [RFC] Unsigned integer support.

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