mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-1019: Double quotation mark mysql query error on orm:convert-mapping --from-database #1271
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Feb 7, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user rroor:
By executing this command
php doctrine orm:convert-mapping --from-database yml yaml/I get this error:After
var*dumpthe$queryvariable doctrine2-orm/lib/vendor/doctrine-dbal/lib/Doctrine/DBAL/Connection.php on line 577string(48) "SHOW FULL TABLES WHERE Table*type = "BASE TABLE""you can see thatBASE TABLEis in double quotations marks.I replaced them with single quotation marks
SHOW FULL TABLES WHERE Table_type = 'BASE TABLE'and executed the statement on the mysql server, no error!Please replace the double quotation marks in the query with single quotation marks.
@doctrinebot commented on GitHub (Feb 7, 2011):
Comment created by @beberlei:
This is a duplicate of DBAL-85
@doctrinebot commented on GitHub (Feb 7, 2011):
Issue was closed with resolution "Duplicate"