#1371: Doctrine_Export::exportSortedClassesSql() does not build an array of
unique
queries
-----------------------------------+----------------------------------------
Reporter: subzero2000 | Owner: jwage
Type: defect | Status: new
Priority: major | Milestone: Unknown
Component: Import/Export | Version: 0.11
Keywords: inheritance | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 1
-----------------------------------+----------------------------------------
The array of queries that is built up by
Doctrine_Export::exportSortedClassesSql() is not passed through
array_unique() after it is built. It has been noticed that at least with
column aggregation inheritance, this means that both the parent and any
child classes will generate multiple CREATE TABLE statements for the same
table. These statements are handled inside a transaction, and it has been
noticed that MySQL will create the table on the first statement and
complain about table already exists on subsequent statements (which inside
a transaction it should NOT do), but PostgreSQL (and presumably other
RDBMS) does the right thing and rolls back the entire transaction and does
not create the table.
Attached is a patch that fixes this in the 0.11 branch.
jwage, I am assigning this issue to you so you can review the attached
patch. I will be happy to apply it if it meets with your approval if you
lack the time to do so. I believe I still have commit privileges.
--
Ticket URL: <http://trac.phpdoctrine.org/ticket/1371>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---