Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix bug purging table with a name as keyword sql. Added backquotes for table name. #22

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
5 participants

Sandex commented Aug 16, 2011

No description provided.

Owner

beberlei commented Aug 21, 2011

This will break code with all databases which are case sensitive about table names (Oracle + PostgreSQL) so i cant merge it.

Sandex commented Aug 25, 2011

How to solve this problem properly?
Also need execute mysql query SET foreign_key_checks = 0 before purge.
Any suggestions.

Nanakii commented Oct 23, 2012

Hello, sorry to reup the topic but I got this issue today and I have a solution in mind.
Couldn't you add an argument in the console command such as "app/console doctrine:fixture:load --use-backquotes" ?
Let me know, thanks !

Member

deeky666 commented Jan 17, 2014

This has to be fixed in the platforms. We should wrap the table name inside AbstractPlatform::getTruncateTableSQL() with Doctrine\DBAL\Schema\Identifier which automatically quotes reserved keywords if necessary.

@lavoiesl lavoiesl added the Duplicate label Mar 22, 2015

Member

lavoiesl commented Mar 22, 2015

Superseeded by #149

@lavoiesl lavoiesl closed this Mar 22, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment