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

MariaDB 5.3+ supports microsecond datetime precision #24475

Merged
merged 1 commit into from
Apr 9, 2016

Conversation

jeremy
Copy link
Member

@jeremy jeremy commented Apr 9, 2016

Support microsecond datetime precision on MariaDB 5.3+.

We support microsecond datetime precision for MySQL 5.6.4+. MariaDB has supported it since 5.3.0, but even 10.x versions return a compatible version string like 5.5.5-10.1.8-MariaDB-log which we parse as 5.5.5, before MySQL supported microsecond precision.

Specialize our version check to account for MariaDB to fix.

@jeremy jeremy force-pushed the ar/mariadb-supports-datetime-precision branch from 394c4a6 to ee055bd Compare April 9, 2016 00:54
We support microsecond datetime precision for MySQL 5.6.4+. MariaDB has
supported it since 5.3.0, but even 10.x versions return a compatible
version string like `5.5.5-10.1.8-MariaDB-log` which we parse as 5.5.5,
before MySQL supported microsecond precision.

Specialize our version check to account for MariaDB to fix.
@jeremy jeremy force-pushed the ar/mariadb-supports-datetime-precision branch from ee055bd to 2224d06 Compare April 9, 2016 01:41
@jeremy jeremy merged commit f0f16f7 into rails:master Apr 9, 2016
@jeremy jeremy deleted the ar/mariadb-supports-datetime-precision branch April 9, 2016 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant