create table fractional_digits_disappear (
without_warning_when_put_in_an integer
);
insert into fractional_digits_disappear (
without_warning_when_put_in_an
) values (
3.141592
);
select *
from fractional_digits_disappear;
WITHOUT_WARNING_WHEN_PUT_IN_AN
------------------------------
3
The fractional seconds of timestamps are also silently lost when these are inserted into dates.
Not raising an error for this could be confusing, and potentially an "inexplicable" bug waiting to happen.
May 132013