
The test below produces the following results for JDBC (is there actually a test in the testweb for this? I couldn't find it) on the May2009 branch it produces: Result: 1 Result: "aap" Result: 1.000000 Result: false Result: <aap/> Result: attribute aap { "beer" } ----------------------------------------- import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class TestJDBC { public static void main(String[] args) throws ClassNotFoundException, SQLException { Class.forName("nl.cwi.monetdb.jdbc.MonetDriver"); Connection conn = DriverManager.getConnection("jdbc:monetdb://localhost:50100/demo?language=xquery"); Statement st = conn.createStatement(); try { ResultSet rs = st.executeQuery("1,\"aap\",1.0,false(), <aap/>, attribute { \"aap\" } { \"beer\" }"); try { while (rs.next()) { System.out.println("Result: " + rs.getString(1)); } } finally { rs.close(); } } finally { st.close(); } } } 2009/8/14 Fabian Groffen <Fabian.Groffen@cwi.nl>:
On 14-08-2009 10:31:45 +0200, Wouter Alink wrote:
My guess is that (looking at the current test output, which shows "1,") the result delimiter (output-mode i think it is called) is still set incorrect. I recall from the JDBC code that there was something like a xml-seq-mapi output mode that needed to be used. But I don't know where or what needs to be changed exactly.
JDBC does Xoutput seq, PHP does mapi_output("seq"), which I suspect is doing the same.
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users