Hi,

> I'm using the latest one Version 1.3.151 Beta (2011-02-12).

I can't reproduce this problem with version 1.3.151, however I can
reproduce it with an earlier version.

Could you run the following test case:

----------------

DeleteDbFiles.execute("~/temp", null, true);
Class.forName("org.h2.Driver");
ResultSet rs;
Connection conn = DriverManager.getConnection(
        "jdbc:h2:~/temp/test");
System.out.println("version: " +
        conn.getMetaData().getDatabaseProductVersion());
conn.createStatement().execute(
        "create alias msim_getDictionary as " +
        "$$ ResultSet x(Connection c, String x) " +
        "throws SQLException { " +
        "return c.createStatement().executeQuery(" +
        "\"select * from dual\"); } $$");
CallableStatement c = conn.prepareCall(
        "{call msim_getDictionary(?)}");
c.setString(1, "Hello");
c.execute();
rs = c.getResultSet();
System.out.println("isBeforeFirst: " + rs.isBeforeFirst());
rs.next();
System.out.println(rs.getInt(1));
conn.close();

----------------

I get:

----------------

version: 1.3.151 (2011-02-12)
isBeforeFirst: true
1

----------------

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to