-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Query builder updateOrInsert fails with empty values #27890
Comments
If |
Yes, it would be fine. There should be a check for empty |
Can you submit a PR? |
Heya, unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? If so feel free to reply and we'll try to have a look. |
Description:
I am trying to do the following: insert the row to database, if it doesn't exists. I can do it conditionally, but I want to do it in one step with some useful method. Seems like
Builder@updateOrInsert()
is what I need:I can see, that is has default value for
values
attribute - empty array. So, seems logical, that it should work with its default value. But it is not. Instead you get invalid mysql syntax error. Sql looks like this:You can see empty
set
block there.Steps To Reproduce:
The text was updated successfully, but these errors were encountered: