Skip to content
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

Support for duration type #364

Open
noaccOS opened this issue Apr 17, 2024 · 2 comments
Open

Support for duration type #364

noaccOS opened this issue Apr 17, 2024 · 2 comments

Comments

@noaccOS
Copy link

noaccOS commented Apr 17, 2024

Documented here

Trying to select on a duration field crashes on Protocol.V*.decode_type not matching

@whatyouhide
Copy link
Owner

@noaccOS yep this would be very welcome! Any chance you want to make a PR to contribute this? 🙃

@whatyouhide
Copy link
Owner

whatyouhide commented Apr 19, 2024

Actually, let's hold off on this. Elixir v1.17 will introduce a new Duration struct, so we'll be better off using that for this new type.

Some more info:

  • Protocol docs.
  • The duration type is only supported in native protocol v5, so it will still not work on previous versions of the native protocol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants