Re: [HACKERS] Automatic type conversion

From: Dave Chapeskie <dchapes(at)ddm(dot)on(dot)ca>
To: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
Cc: Postgres Hackers List <hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Automatic type conversion
Date: 1998-05-10 06:23:22
Message-ID: 19980510022322.07404@ddm.on.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, May 10, 1998 at 12:14:11AM +0000, Thomas G. Lockhart wrote:
> -- there isn't a floating point factorial operator...
> tgl=> select (4.3 !);
> ?column?
> --------
> 24
> (1 row)

Am I the only one that thinks the above is wrong? 4.3 factorial is
mathematically undefined and does NOT equal 24.

I don't think the automatic type conversion should automatically
truncate values without at least a warning. Preferably I'd like to be
forced to do the conversion myself for cases like the above.

--
Dave Chapeskie <dchapes(at)ddm(dot)on(dot)ca>, DDM Consulting

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Eugene Selkov Jr. 1998-05-10 08:07:56 Re: [HACKERS] Automatic type conversion
Previous Message Michael Richards 1998-05-10 04:33:10 A possible postgres 6.3.2 bug