If a number has no fractional part, send it as integer of type INT4OID,
as numeric of type NUMERICOID otherwise.