mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Change some ABORTS to ERROR. Add line number when COPY Failure.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.11 1998/01/05 03:34:09 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.12 1998/01/05 16:40:06 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -232,9 +232,9 @@ int16
|
||||
i4toi2(int32 arg1)
|
||||
{
|
||||
if (arg1 < SHRT_MIN)
|
||||
elog(ABORT, "i4toi2: '%d' causes int2 underflow", arg1);
|
||||
elog(ERROR, "i4toi2: '%d' causes int2 underflow", arg1);
|
||||
if (arg1 > SHRT_MAX)
|
||||
elog(ABORT, "i4toi2: '%d' causes int2 overflow", arg1);
|
||||
elog(ERROR, "i4toi2: '%d' causes int2 overflow", arg1);
|
||||
|
||||
return ((int16) arg1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user