Am 10.10.2008 um 14:37 schrieb Moritz Onken:

After talking to mst, the exception was degraded to a warn.
Patch attached.

greets,

moritz

<
resultset
.diff><test.diff>_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]


Hi, especially mst,

we talked about rewriting _collapse_result to allow multiple has_many
joins on the same level.
I added some code to it, which basically removes any duplicates.
I know we talked about that on IRC and you told me that this is dirty
hack. As of that the code is only run if you set distinct => 1.
If set so the results are exactly what you would expect, no duplicates!

Please have a look and tell me if this is working for you or if we
should try something else.

Attachment: 77collapseresult.t
Description: Binary data



Test attached. Simply set distinct => 0 to see how the tests fail
without it.

greets,

Attachment: resultset.diff
Description: Binary data



moritz


_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to