-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
Milliseconds being Trimmed on SQL queries. #22048
Comments
Which minor (last number in version) version are you on? #21936 might have fixed your issue |
@Dylan-DPC Actually #21936 haven't fixed this issue because currently no schema grammar honor the given precision. See @kevupton Currently all schema grammars are ignoring any given precision in It should be noted, however, that the MySQL version you're using does not support the This is the current behavior:
This was implemented in #22122 and should be included with Laravel 5.5.22 when released. 😉 |
Dam ok, thanks. I will just do a manual workaround for now. |
Woo ! Awesome, look forward to the release. 🥇 |
Description:
When I select
TIME(3)
from the database the resulting millisecond precision is trimmed from the data.Steps To Reproduce:
TIME(3)
.SELECT MAX(time) max, MIN(time) time FROM table
. Using the\DB
Facade. (Either query builder or not).var_dump
the results.Note: I figured this is laravel specific, because when I run a raw php script. Which simply does the same thing, (outside of laravel) the result contains the precision. It also works in phpmyadmin.
The text was updated successfully, but these errors were encountered: