-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Postgres TIMESTAMP WITH TIMEZONE
(TIMESTAMPTZ
) support
#75
Comments
Hi, thanks for the issue! What is your suggestions on this? Perhaps we can add pub enum Value {
#[cfg(feature = "with-chrono")]
DateTimeTz(Box<chrono::DateTime>),
// ...
} |
@billy1624 hi, that was my initial thought but I wasn't sure how well that would translate across the other dialects you support (mysql, sqlite) since postgres is what I'm most familiar with. Adding an additional enum variant seems like the clearest solution to me assuming other dialects have something analogous to Thanks! |
Yes, @ShawnROGrady, good point! We have to also consider the |
The problem is that However, what you need for updating / inserting a Correct me if I am wrong. Thanks!! Ref: https://www.postgresql.org/docs/9.1/datatype-datetime.html |
@billy1624 I think your understanding of the problem is correct. |
I suggest adding a variant to |
Similarly, |
|
Currently there is only a
Value::DateTime
variant which does not work forTIMESTAMP WITH TIMEZONE
(TIMESTAMPTZ
) column types.The text was updated successfully, but these errors were encountered: