1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Use a fixed error message for ERANGE to avoid duplicate test result files.

Add some resultmap entries for SCO OpenServer.
This commit is contained in:
Peter Eisentraut
2001-08-06 21:55:16 +00:00
parent 80185f4b5b
commit bf51b8608b
10 changed files with 9 additions and 2084 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.87 2001/06/20 18:07:56 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.88 2001/08/06 21:55:13 petere Exp $
*
*-------------------------------------------------------------------------
*/
@ -720,7 +720,11 @@ static const char *useful_strerror(int errnum)
static char errorstr_buf[48];
char *str;
str = strerror(errnum);
if (errnum == ERANGE)
/* small trick to save creating many regression test result files */
str = gettext("Numerical result out of range");
else
str = strerror(errnum);
/*
* Some strerror()s return an empty string for out-of-range errno.