Hi,
On Wed, Aug 6, 2008 at 11:36 PM, Chaojing Yang
One thing to mention, if i try query which means not a search activity, will cause an Exception. But it works...anyway, the insert action has been done. For examples:
rs = st.executeQuery("do insert <end/> as last into doc(\"greetings.xml\")/doc");
Exception in thread "main" java.sql.SQLException: ?Z {T P?[ P?Z P?[ ?Z ?Z P?[ V ( Mars language... ) at nl.cwi.monetdb.jdbc.MonetConnection$ResponseList.executeQuery(MonetConnection.java:2048) at nl.cwi.monetdb.jdbc.MonetConnection$ResponseList.processQuery(MonetConnection.java:1798) at nl.cwi.monetdb.jdbc.MonetStatement.internalExecute(MonetStatement.java:371) at nl.cwi.monetdb.jdbc.MonetStatement.execute(MonetStatement.java:340) at nl.cwi.monetdb.jdbc.MonetStatement.executeQuery(MonetStatement.java:404) at test.monetdb.XQuerySearch.main(XQuerySearch.java:46)
I am not sure what is this, but maybe some more experts than me in jdbc can answer?
Now i'm wondering, if jdbc also support prepared query, which means to execute query like this:
rs = st.executeQuery("prepared.xq" , "var1" , "var2" ... );
I am not sure if there is a method with such a signature, but you can always wrap your file with an inputStream object and create the string yourself. This can be done either inline or you can always overload the executeQuery method to accept a string and do your IO management inside the overloaded method. letferis
run: mclient -lx -t q.xq
I get Error: Can't find zlib1.dll Reinstall didn't solve the problem.
It looks like you are missing the zlib library. Try installing the zlib from here: http://www.winimage.com/zLibDll/ (the precompiled dll package) and it should work.
As once discussed in http://comments.gmane.org/gmane.comp.db.monetdb.user/1027, i'm in the same situation.
This thread is about monetdb5 and mal, while you will be using monetdb 4 (using mil) and xquery (I dont believe you have to get "dirty" with mil though).
That's the best news of this week and thank lefteris, u words do helped me a lot.
Best regards, Chaojing Yang
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users