|
14 | 14 | * Copyright (c) 1998-2005, PostgreSQL Global Development Group
|
15 | 15 | *
|
16 | 16 | * IDENTIFICATION
|
17 |
| - * $PostgreSQL: pgsql/src/backend/utils/adt/numeric.c,v 1.88 2005/11/22 18:17:23 momjian Exp $ |
| 17 | + * $PostgreSQL: pgsql/src/backend/utils/adt/numeric.c,v 1.89 2006/01/2517:54:14 momjian Exp $ |
18 | 18 | *
|
19 | 19 | *-------------------------------------------------------------------------
|
20 | 20 | */
|
@@ -3206,8 +3206,8 @@ apply_typmod(NumericVar *var, int32 typmod)
|
3206 | 3206 | ereport(ERROR,
|
3207 | 3207 | (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
|
3208 | 3208 | errmsg("numeric field overflow"),
|
3209 |
| -errdetail("The absolute value is greater than or equal to 10^%dfor field with precision %d, scale%d.", |
3210 |
| -ddigits-1,precision,scale))); |
| 3209 | +errdetail("A field with precision %d, scale%dmust have an absolute value less than 10^%d.", |
| 3210 | +precision,scale,maxdigits))); |
3211 | 3211 | break;
|
3212 | 3212 | }
|
3213 | 3213 | ddigits-=DEC_DIGITS;
|
|