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

Skip to content

Commit d7b1610

Browse files
committed
Repair round(numeric) function. An initdb would be required to get the
fixed version, otherwise you'll continue to encounter breakage.
1 parent 84f26ed commit d7b1610

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/catalog/pg_proc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: pg_proc.h,v 1.179 2000/12/10 21:19:02 petere Exp $
10+
* $Id: pg_proc.h,v 1.180 2000/12/21 20:48:16 petere Exp $
1111
*
1212
* NOTES
1313
* The script catalog/genbki.sh reads this file and generates .bki
@@ -2335,7 +2335,7 @@ DATA(insert OID = 1706 ( sign PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 n
23352335
DESCR("sign of value");
23362336
DATA(insert OID = 1707 ( round PGUID 12 f t t t 2 f 1700 "1700 23" 100 0 0 100 numeric_round - ));
23372337
DESCR("value rounded to 'scale'");
2338-
DATA(insert OID = 1708 ( round PGUID 14 f t t t 1 f 1700 "1700" 100 0 0 100 "select numeric_round($1,0)" - ));
2338+
DATA(insert OID = 1708 ( round PGUID 14 f t t t 1 f 1700 "1700" 100 0 0 100 "select round($1,0)" - ));
23392339
DESCR("value rounded to 'scale' of zero");
23402340
DATA(insert OID = 1709 ( trunc PGUID 12 f t t t 2 f 1700 "1700 23" 100 0 0 100 numeric_trunc - ));
23412341
DESCR("value truncated to 'scale'");

0 commit comments

Comments
 (0)