Hi Dean, 

Setting the url parameter like follows worked for us in 1.3.3...

<param name="url" value="jdbc:mysql://localhost/jcr?relaxAutoCommit=true" /> 

Regards,
Dainius

-----Original Message-----
From: Dean Jones [mailto:[EMAIL PROTECTED] 
Sent: January-09-08 6:47 AM
To: [email protected]
Subject: Use of "not" in xpath queries (1.4 snapshot / trunk)

Hello folks,

In order to try and get clustering working (I'm working around this
issue: http://tinyurl.com/2rrmg5), I'm trying to switch to either the 
unofficial 1.4 snapshot or the trunk. However, with both of these, some of my 
tests that worked with v1.3.3 are now failing; specifically, these are tests 
which generate xpath queries which return those nodes that do not have a value 
for some property. I have been generating xpath queries which look something 
like this:

/jcr:root//element(*, MyNodeType)[not(@propertyA)]

After some testing, it seems that where propertyA is defined on MyNodeType (in 
the .cnd file), then this query will now not match nodes that do not have a 
value for propertyA. Where propertyA is not a defined property for MyNodeType, 
nodes will be matched. Previously (in 1.3.3), nodes that had the property 
defined but did not have a value for that property would be returned by the 
query (this is what I had expected from the jsr-170 spec). Thanks in advance 
for any help,

Dean.

Reply via email to