-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
ability to clean WITH clause matching CONTAIN process #17563
base: 5.x
Are you sure you want to change the base?
Conversation
Ideally this should come with a test case. |
if ($cte) { | ||
$this->_parts['with'][] = $cte; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if a no-op like with(null)
makes sense, but other query builder methods with override support allow similar no-ops.
Technically this would need to go into 6.x, as the signature change is not backwards compatible. If it's considered low risk, then maybe it could go into 5.next. |
Why isn't it though? All call sites that were valid before are still valid. The addition is new semantic meaning to a newly supported type. We don't have a clear example of 'adding nullability' in our backwards compatibility guide but perhaps it is time we decide on that. I agree on this going to 5.next though as it isn't a bugfix. |
Currently the test is failing, but perhaps I don't understand the use case well enough.
I've added a test, and I'm not sure I understand the workflow this change would enable. Any examples you could share? |
sorry, been I'll. yes, I have an example that prompted this tweak. I'll drop that here in the morning. |
Now that we have actually typed arguments, adding a type ( |
@markstory |
Not really. However, it is currently targetting |
Added NULL condition to overwrite and clear SQL WITH clause matching the CONTAIN process.