diff options
Diffstat (limited to 'src/backend/utils/adt/int.c')
-rw-r--r-- | src/backend/utils/adt/int.c | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/src/backend/utils/adt/int.c b/src/backend/utils/adt/int.c index 64ba146d713..c8dfe1cfeb7 100644 --- a/src/backend/utils/adt/int.c +++ b/src/backend/utils/adt/int.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/int.c,v 1.81 2008/01/01 19:45:52 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/int.c,v 1.82 2008/06/17 19:10:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1085,36 +1085,6 @@ int2mod(PG_FUNCTION_ARGS) PG_RETURN_INT16(arg1 % arg2); } -Datum -int24mod(PG_FUNCTION_ARGS) -{ - int16 arg1 = PG_GETARG_INT16(0); - int32 arg2 = PG_GETARG_INT32(1); - - if (arg2 == 0) - ereport(ERROR, - (errcode(ERRCODE_DIVISION_BY_ZERO), - errmsg("division by zero"))); - /* No overflow is possible */ - - PG_RETURN_INT32(arg1 % arg2); -} - -Datum -int42mod(PG_FUNCTION_ARGS) -{ - int32 arg1 = PG_GETARG_INT32(0); - int16 arg2 = PG_GETARG_INT16(1); - - if (arg2 == 0) - ereport(ERROR, - (errcode(ERRCODE_DIVISION_BY_ZERO), - errmsg("division by zero"))); - /* No overflow is possible */ - - PG_RETURN_INT32(arg1 % arg2); -} - /* int[24]abs() * Absolute value |