-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Invalid mysql is produced in MySQLSchemaManager::selectTableColumns #6274
Comments
I have the same issue |
Closing as this is not a bug, see #6275 (comment) |
derrabus
pushed a commit
that referenced
this issue
Feb 1, 2024
<!-- Fill in the relevant information below to help triage your pull request. --> | Q | A |------------- | ----------- | Type | bug | Fixed issues | #6274 #### Summary The current produced query leads to an ambigous column reference as described in the linked issue.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
Summary
The method
MySQLSchemaManager::selectTableColumns
(source) produces SQL which is not valid. In my case, here is (simplified) the query which was created:Current behaviour
The query leads to the message "[1052] Column 'TABLE_NAME' in where clause is ambiguous" which is produced in the AND EXISTS() subquery.
This errors leads to unusable doctrine/migrations command calls as this method is invoked.
How to reproduce
Run the query i pasted here.
Expected behaviour
The sql is valid.
The text was updated successfully, but these errors were encountered: