This project is archived and is in readonly mode.
Process schema_migrations inserts individually during rake db:test:clone_structure.
-
Rick DeNatale
Actually, it might not just be a case of the chunk being too big, but that the execute method expects a single sql statement, which makes this a bit more critical.
-
Steven Soroka
I have the same problem and independently came up with the same patch. +1, please commit.
-
Michael Koziarski
- Milestone set to 2.1.1
- Assigned user set to Michael Koziarski
Could you reattach with git-format-patch output so we get the authorship etc correct. Also, in the commit message could you mention why this seemingly trivial thing makes a difference. This could easily get reverted if someone gets worried about the visual appearance of the dump
-
Steven Soroka
It makes a difference because SchemaStatements#dump_schema_information is inconsistent with db:clone_structure in databases.rake, and will create sql that db:clone_structure cannot load.
-
Repository
- State changed from new to resolved
(from [2183c220ada046993274ccdc6f1f86e9e8a3a5c6]) Make sure clone_structure can load the results of dump_schema_information
SchemaStatements#dump_schema_information joins inserts with a single \n, but is later split on \n\n, and fails when trying to execute all the inserts as a single sql statement.
Signed-off-by: Michael Koziarski
[#201 state:resolved]
