Skip to content

Conversation

ankane
Copy link

@ankane ankane commented Feb 25, 2025

This updates Result#field_types to return the precision for time, datetime, and timestamp fields (like other types).

https://dev.mysql.com/doc/refman/8.4/en/fractional-seconds.html

Edit: Updated to only add the precision if not the default (for slightly more backwards compatibility)

@sodabrew
Copy link
Collaborator

sodabrew commented Apr 7, 2025

I like this, but would need to put it into a major-ish release

@sodabrew sodabrew added this to the 0.6.0 milestone Apr 7, 2025
@ankane
Copy link
Author

ankane commented Apr 7, 2025

Makes sense. I think it should probably always include the precision in that case.

@ankane ankane force-pushed the field-types-precision branch from 2e843cb to 52b7b58 Compare April 12, 2025 00:23
@sodabrew
Copy link
Collaborator

Makes sense. I think it should probably always include the precision in that case.

Off the cuff, yes, ish? I think so.

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

Successfully merging this pull request may close these issues.

2 participants