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

Commit bf51b86

Browse files
committed
Use a fixed error message for ERANGE to avoid duplicate test result files.
Add some resultmap entries for SCO OpenServer.
1 parent 80185f4 commit bf51b86

10 files changed

+9
-2084
lines changed

src/backend/utils/error/elog.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.87 2001/06/20 18:07:56 petere Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.88 2001/08/06 21:55:13 petere Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -720,7 +720,11 @@ static const char *useful_strerror(int errnum)
720720
static char errorstr_buf[48];
721721
char *str;
722722

723-
str = strerror(errnum);
723+
if (errnum == ERANGE)
724+
/* small trick to save creating many regression test result files */
725+
str = gettext("Numerical result out of range");
726+
else
727+
str = strerror(errnum);
724728

725729
/*
726730
* Some strerror()s return an empty string for out-of-range errno.

src/test/regress/expected/int2-math-result-out-of-range.out

Lines changed: 0 additions & 215 deletions
This file was deleted.

0 commit comments

Comments
 (0)