Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: [HACKERS] numeric & decimal - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] numeric & decimal
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: [HACKERS] numeric & decimal  ([email protected] (Jan Wieck))
List pgsql-hackers
>     For  some reason (dunno why) the parser ignores the precision
>     for DECIMAL.  atttypmod is set hardcoded to -1.  So the above
>     is identical to a
> 
>         CREATE TABLE test (n numeric(10,3), d decimal);
> 
>     I'll  test  what  happens  if I enable it in gram.y and if it
>     doesn't break any regression commit the changes.

In the old days, we couldn't handle precision, so we ignored it.

--  Bruce Momjian                        |  http://www.op.net/~candle [email protected]            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Matthias Schmitt
Date:
Subject: Hacker found bug in Postgres ?
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] RE: Mysql comparison