pgsql-server/src backend/utils/adt/cash.c back ...
pgsql-server/src backend/utils/adt/cash.c back ...
От:
tgl@postgresql.org (Tom Lane)
Дата:
CVSROOT: /cvsroot Module name: pgsql-server Changes by: tgl@postgresql.org 03/03/11 16:01:33 Modified files: src/backend/utils/adt: cash.c char.c float.c geo_ops.c int.c int8.c numeric.c timestamp.c src/test/regress/expected: errors.out float4-exp-three-digits.out float4.out float8-exp-three-digits.out float8-fp-exception.out float8-small-is-zero.out float8.out src/test/regress/sql: errors.sql Log message: Add explicit tests for division by zero to all user-accessible integer division and modulo functions, to avoid problems on OS X (which fails to trap 0 divide at all) and Windows (which traps it in some bizarre nonstandard fashion). Standardize on 'division by zero' as the one true spelling of this error message. Add regression tests as suggested by Neil Conway.