Hi,

I can't reproduce it. My test case returns java.lang.Long:

package db;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import org.h2.tools.DeleteDbFiles;
public class TestSimple {
    public static void main(String... args) throws Exception {
        org.h2.Driver.load();
        DeleteDbFiles.execute("data", null, true);
        Connection conn;
        conn = DriverManager.getConnection(
                "jdbc:h2:data/test", "sa", "sa");
        Statement stat = conn.createStatement();
        stat.execute("create table test(id bigint)");
        stat.execute("insert into test values(1)");
        ResultSet rs = stat.executeQuery(
                "select * from test");
        rs.next();
        Object o = rs.getObject(1);
        System.out.println(o.getClass().getName());
        conn.close();
    }
}

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