-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
5.8.30 to 5.8.31 update on postgresql causes issue #29443
Comments
From https://github.com/laravel/framework/releases/tag/v5.8.31 it seems [5.8] Fix UPDATE queries with alias fits the bill maybe? But not sure why it would. I've also upgraded and didn't encounter this in my tests (~6k, lots of DB); can you please share the exact code producing this? Still pinging @staudenmeir to the rescue ⛑ |
#29448 Should fix this issue. Complete strings after the first |
Sorry about that. |
Description:
When updating model with timestamps enabled, an exception is thrown.
Illuminate \ Database \ QueryException (42703)
SQLSTATE[42703]: Undefined column:
It looks to be thrown because the "updated_at" column in the sql is prefixed with the table name.
update "schema"."tablename" set "name" = CCCC, .....
"tablename"."updated_at" = 2019-08-07 04:20:58 where "id" = 1152
Steps To Reproduce:
in composer.json set "laravel/framework": "5.8.*" then run composer update
WORK AROUND
in composer.json set "laravel/framework": "5.8.30" then run composer update
The text was updated successfully, but these errors were encountered: