-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
TIMESTAMP columns don't return the same value as was inserted #453
Comments
This is expected behavior, due to the interaction between
(I recognize this statement is about timestamps with time zone - it is this behavior that the conversion logic used for |
The bug is then if you set your column to just I found if I change |
Ah, yeah, that'll do it. Yet another case of "yeah maybe the design that doesn't acknowledge that there's often more than one way to specify any given type isn't so great". In any event, even if changing it was a functional positive in this case, we couldn't do so anyway for compatibility reasons. (Always fun, those...) |
Describe the bug
TIMESTAMP WITHOUT TIME ZONE columns don't return the same value as was inserted
To Reproduce
Date
Date
Expected behavior
Date inserted is the same as date extracted regardless of whether
WITH TIME ZONE
is included in column definition.Environment
PostgresNIO: 1.20.2
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0
Other context
This is on a Mac set to GMT which is weird, I might expect this when the timezone is not UTC+0.
The text was updated successfully, but these errors were encountered: