[DBIx-Class-Devel] [DBIx-Class-Fixtures] Source Order Fix (#6)

Tom Bloor notifications at github.com
Tue May 26 11:06:43 GMT 2015


Fix for an issue where when inserting data into a database, the tables were being sorted alphabetically, rather than in dependency order. This meant that when a table such as `Author` depended on a table such as `Publisher` to already be populated, then the entire population step would fail - at least in PostgreSQL. This fix uses a stripped down version of the sorting algorithm from SQL::Translator.
You can view, comment on, or merge this pull request online at:

  https://github.com/dbsrgits/DBIx-Class-Fixtures/pull/6

-- Commit Summary --

  * Temporary fix using SQL::Translator
  * testing work with non SQL::Translator algorithm
  * re-thought the logic, basically stripped the SQLT logic of anything not needed
  * fix of minor non-necessary differences
  * Merged changes into .pm file properly
  * remove Dwarn statement
  * move sorting call outside of transaction call

-- File Changes --

    M lib/DBIx/Class/Fixtures.pm (89)

-- Patch Links --

https://github.com/dbsrgits/DBIx-Class-Fixtures/pull/6.patch
https://github.com/dbsrgits/DBIx-Class-Fixtures/pull/6.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/DBIx-Class-Fixtures/pull/6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20150526/7406ad65/attachment.htm>


More information about the DBIx-Class-Devel mailing list