You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The behavior of timestamp convenience classes such as PG::TextDecoder::TimestampUtc is different when using a hash vs. keyword arguments.
With a hash argument, we use Hash#merge, ensuring that flags are always set correctly even if they are passed via the constructor. With keyword arguments, it's possible to accidentally overwrite the value of flags such that they are not set correctly (see rails/rails#48055).
Description
The behavior of timestamp convenience classes such as
PG::TextDecoder::TimestampUtc
is different when using a hash vs. keyword arguments.With a hash argument, we use
Hash#merge
, ensuring thatflags
are always set correctly even if they are passed via the constructor. With keyword arguments, it's possible to accidentally overwrite the value offlags
such that they are not set correctly (see rails/rails#48055).The text was updated successfully, but these errors were encountered: