Skip to content
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

Quote table and constraint names in drop foreign key / drop constraint SQL #862

Merged
merged 1 commit into from
Jan 9, 2016
Merged

Conversation

mpoiriert
Copy link
Contributor

On the MySQLPlatform::getDropForeignKeySQL table name will not be escaped if the name is passed instead of the object table itself.

Since the getLocalTableName use the localTable property the object is always available, there is no reason not to use it.

On the MySQLPlatform::getDropForeignKeySQL table name will not be escaped if the name is passed instead of the object table itself.

Since the getLocalTableName use the localTable property the object is always available, there is no reason not to use it.
@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DBAL-1237

We use Jira to track the state of pull requests and the versions they got
included in.

@deeky666
Copy link
Member

Requires a test case.

@deeky666 deeky666 added this to the 2.5.5 milestone Jan 9, 2016
@deeky666 deeky666 self-assigned this Jan 9, 2016
@deeky666 deeky666 changed the title Pass table object instead of table table name Quote table and constraint names in drop foreign key / drop constraint SQL Jan 9, 2016
@deeky666 deeky666 merged commit 089001f into doctrine:master Jan 9, 2016
deeky666 added a commit that referenced this pull request Jan 9, 2016
Quote table and constraint names in drop foreign key / drop constraint SQL

fixes #1186
@deeky666
Copy link
Member

deeky666 commented Jan 9, 2016

Merge manually via 50f4482. Added quotation fixed in the platforms, too and fixed failing test due to this patch.

@deeky666
Copy link
Member

deeky666 commented Jan 9, 2016

Backported to branch 2.5 via acad5d6, a9e08c8, 6460e4a

@mdular
Copy link

mdular commented Feb 15, 2016

Hey, this also affects Postgres. I was a bit surprised to see that the fix has existed for 9 months already - is there a rough estimate on when it will be tagged?

Keep up the great work! :)

@mpoiriert mpoiriert deleted the patch-2 branch February 15, 2016 19:09
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants