Add explicit tests for division by zero to all user-accessible integer

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 31e69ccb210cf49712f77facbf90661d8bc2eed5
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-03-11T21:01:33Z
Releases: 7.4.1
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.

Files