Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 06d45e4

Browse files
committed
Update regression error message for NUMERIC range overflow. Display "1"
instead of "10^0".
1 parent 514d0f4 commit 06d45e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/regress/expected/numeric.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,12 +688,12 @@ INSERT INTO fract_only VALUES (1, '0.0');
688688
INSERT INTO fract_only VALUES (2, '0.1');
689689
INSERT INTO fract_only VALUES (3, '1.0'); -- should fail
690690
ERROR: numeric field overflow
691-
DETAIL: The absolute value is greater than or equal to 10^0 for field with precision 4, scale 4.
691+
DETAIL: A field with precision 4, scale 4 must have an absolute value less than 1.
692692
INSERT INTO fract_only VALUES (4, '-0.9999');
693693
INSERT INTO fract_only VALUES (5, '0.99994');
694694
INSERT INTO fract_only VALUES (6, '0.99995'); -- should fail
695695
ERROR: numeric field overflow
696-
DETAIL: The absolute value is greater than or equal to 10^0 for field with precision 4, scale 4.
696+
DETAIL: A field with precision 4, scale 4 must have an absolute value less than 1.
697697
INSERT INTO fract_only VALUES (7, '0.00001');
698698
INSERT INTO fract_only VALUES (8, '0.00017');
699699
SELECT * FROM fract_only;

0 commit comments

Comments
 (0)