Fixed EZP-20764: PostgreSQL fails when out-of-range values are used in integer context