Hi Alejandro,
I have committed your fixes. Thanks!
-- Unico
Alejandro Guizar wrote:
(A) In method StandardRDBMSAdapter.removeLock(Connection, Uri, NodeLock), these statements are executed in sequence:
"delete LOCKS from LOCKS, URI u where LOCK_ID = u.URI_ID and u.URI_STRING=?" "delete URI from URI, LOCKS l where URI_ID = l.LOCK_ID and URI_STRING=?"
When the second statement is executed, the lock record that would match the
uri record has already been removed by the first statement, so the uri
doesn't get deleted.
While this doesn't cause any problem in programs logic, it does leave behind the temporary record used to hold the lock uri.
The solution would be to replace the second statement with:
"delete from URI where URI_STRING=?"
----
(B) In method retrieveObject(Connection, Uri), you can find this line of code:
if (className.equals(LinkNode.class.toString()))
The invocation to Class.toString() returns this string: "class org.apache.slide.structure.LinkNode"
The "class " prefix causes the expression to always evaluate to false, resulting in problems when retrieving link nodes.
The solution is to replace such line with:
if (className.equals(LinkNode.class.getName()))
-Alejandro
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
