-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reference.update doesn't check all values for changes properly #463
Comments
@jrchudy Is this still an issue? |
This is still the case and should be addressed to prevent losing precision for timestamp values. |
Since the check in update function is a simple For example, assume the server is in Log Angeles, and the user is in New York. In this case, the |
When the column is of type
date
,timestamp
, ortimestamptz
, the check to make sure the values have changed before adding the column name to the list of projections may not work properly.When I saw this issue, I had a
timestamp
column with:2016-01-18T13:00:00
2016-01-18T13:00:00.000-08:00
The
timestamptz
column had these values:2016-01-18T00:00:00-08:00
2016-01-18T00:00:00.000-08:00
One way to fix this is to convert values for these column types using moment and then compare the values.
The text was updated successfully, but these errors were encountered: