[daisy] [JIRA] Commented: (DSY-574) Fix for failing repository tests
Karel Vervaeke (JIRA)
issues at cocoondev.org
Tue Nov 6 08:51:29 CST 2007
[ http://issues.cocoondev.org//browse/DSY-574?page=comments#action_13460 ]
Karel Vervaeke commented on DSY-574:
------------------------------------
I was running MySQL 5.0.38 and I can confirm that the test runs fine on MySQL 4.1
After discussing offline with Bruno we established that the behaviour from 4.1 is indeed correct, because any test that starts with dereferencing
$Link=>$MultHier has none(...) , $Link=>$MultHier has all(...), ... should return false if $Link is not pointing to a document.
In conclusion, the test does not need to be changed, but the behaviour for MySQL 5 is wrong and should be fixed
> 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