Re: TRUNC vs. TRUNCATE

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: TRUNC vs. TRUNCATE
Date: 2005-11-28 22:45:03
Message-ID: 200511282245.jASMj3K24883@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christopher Kings-Lynne wrote:
> Hi,
>
> I notice we added CEILING() as an alias to CEIL() for compatibility. We
> also have POWER() for POW().
>
> I notice that MySQL uses TRUNCATE() and we only have TRUNC(). Is
> TRUNCATE actually spec compliant? Should we add TRUNCATE anyway for

I don't see either in the SQL99 standard.

> consistency and compatibility?

No, if we did that we would be carrying around a ton of stuff.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-11-28 23:19:27 Re: NVL vs COALESCE
Previous Message Bruce Momjian 2005-11-28 22:30:08 Re: POWER vs. POW ???