On 11/05/2011 08:27, Lukas Kircher wrote:
Hi Computer Software Developer,
I had a look at your issue - I attached my setup for reproduction, to make sure there aren't any errors on my side. You can start it by calling
'java -cp BaseX.jar org.basex.BaseX < commands.txt'*
For me it works fine with the actual release you can get from [1]. Which version of BaseX are you using?
Regarding the insert issue: Are you trying to insert something into an APPLICATION element which is deleted by the delete statement - in this case the insert operation is not carried out at all - as a result of optimization processes. Depending on what you want to do, I'd be happy to help you out ... just let me know.
Feel free to ask for more.
Regards, Lukas
I could not reproduce it today in my own set up (I dropped the database and re-created the same today). All I can remember from yesterday is that first I was trying some incorrect replace statements (target of replace was a set of nodes instead of just one node) before using delete/insert statements ('cos I needed to replace a set of nodes).
If it helps, when I attempted a query in the UI yesterday (instead of JAX-RX), the database consistently threw some exception and suggested filing a bug report (I did not, unfortunately, store the details and the exception, so do not have access to the same right now).
My comments about insert were incorrect anyway, apologies for the same - I was mistakenly inserting into the parent element of the actual intended location (but was later checking the existence in the actual intended location)
If it happens again, will be more meticulous and will store the various steps/logs. I was using BaseX 6.5.1, will upgrade to 6.6.2 now.
Thanks for your help.