-
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
Job Queue Datetime bug when using the MariaDB Database driver #50542
Comments
Hi @apoorvpal01,
Did you upgrade from Laravel 7 to Laravel 11 just now or have you been running Laravel 10 for a while? Can you switch back to the |
Hi @staudenmeir I have been running on Laravel 10 for the past year without any issues, with the same config (except the DB driver change) I switched back to the mysql driver on Laravel 11 and it worked fine. The problem occurs only on the |
@apoorvpal01 It's maybe related to strict mode, can you try |
@hafezdivandari You're right. Disabling the strict mode fixed it. If this is the default requirement for queues, is it in the docs somewhere? Did I miss it? If not, maybe I could add a PR for this to be included in the docs for jobs. |
@apoorvpal01 actually it's not about strict mode. The problem is that you're using an incompatible Laravel 7: Laravel 11: |
(The disabled strict mode just hid the error from you all this time.) As @hafezdivandari said, it seems like Laravel has always being using |
Oh, thanks for the clarification. I am not sure how I got this schema on the database then. I'll check that out. Sorry for the trouble, and thanks for your help! |
Laravel Version
11.0.5
PHP Version
8.3.3
Database Driver & Version
MariaDB 10.11.2 on Ubuntu 22.04 LTS with the MariaDB driver
Description
SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '1710393058' for column
laravel_test.
jobs.
available_atat row 1
I get the error mentioned above when running jobs on the PHP 8.3.3. The database I use has not been changed from the one migrated via Laravel 7 with the MySQL driver.
Steps To Reproduce
mariadb
driver.database
as theQUEUE_DRIVER
.The text was updated successfully, but these errors were encountered: