[daisy] [JIRA] Commented: (DSY-574) Fix for failing repository tests

Bruno Dumon (JIRA) issues at cocoondev.org
Mon Nov 5 08:57:29 CST 2007


    [ http://issues.cocoondev.org//browse/DSY-574?page=comments#action_13459 ] 

Bruno Dumon commented on DSY-574:
---------------------------------

The testcases run fine for me as-is. It is likely related to different MySQL versions. (Background: I run MySQL 4.1 to make sure we stay compatible with that, I rely on other people to report problems with version 5.)

Now, if I'm not mistaken the test is correct, since as you say: "Doc2 has these paths", and the test is for "has none", so the query should not return documents. So it's probably a problem in the implementation after all.

I assume the other tests (especially LocalQueryTest) do run fine?

> Fix for failing repository tests
> --------------------------------
>
>          Key: DSY-574
>          URL: http://issues.cocoondev.org//browse/DSY-574
>      Project: Daisy
>         Type: Bug
>   Components: Repository
>     Versions: 2.2
>     Reporter: Karel Vervaeke
>     Priority: Minor
>  Attachments: dereftest-20071030.patch
>
> This query returns a row where none is expected:
> select name where documentType='Doctype4' and $Link=>$MultiHier has none (Path('a1/a2/a3'), Path('b1/b2'), Path('c1'))
> Doc1.$Link = Doc2.
> Doc2 has these paths, but Doc1 does not, hence the query result is correct.
> The attached patch creates Doc1 with a different document type to avoid having doc1 in the query result.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



More information about the daisy mailing list