-
Notifications
You must be signed in to change notification settings - Fork 125
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
Better Support for Postgres Interval #393
Comments
Indeed,
It doesn't have to be raw string: CAST(EXTRACT(EPOCH, HtFleetStatus.UptimeValue).MUL(Int(1000000000))).AS_BIGINT().AS("ht_fleet_status.uptime_value") |
So, to confirm, the SET missing is a missing feature not an intentional choice, correct?
Okay, that's fair. When you say pgtype, you're referring to the pgx driver data type, correct?
Thank you for the code snippet I love when I can do things in Jet as much as I can. |
Yeah, it is a bug.
Yes, this one - https://github.com/jackc/pgtype |
Fixes go-jet#393 ChangeLog: - Fixing TZ test and adding a pointer value comparator
Is your feature request related to a problem? Please describe.
For example.
)
When UptimeValue is an interval, the SET command is not exposed, so it cannot be used as part of an upsert operation.
Describe the solution you'd like
I'd like to have SET be available to pg interval and have the default data type be mapped to time.Duration.
Work Around
I'll post this in here for anyone who runs into this as well.
The text was updated successfully, but these errors were encountered: