Hi,

I get a different exception when running the statement in the H2
Console. Could you provide a simple, reproducible test case please?
Please include instructions on how to run the test (I guess this is
the reason why I can't reproduce the problem).

By the way, you also need to import java.sql.*:

CREATE ALIAS IP_ADDRESS AS $$
import org.h2.tools.SimpleResultSet;
import java.sql.*;
@CODE
ResultSet simpleResultSet() throws SQLException {
    SimpleResultSet rs = new SimpleResultSet();
    rs.addColumn("ID", Types.INTEGER, 10, 0);
    rs.addColumn("NAME", Types.VARCHAR, 255, 0);
    rs.addRow(0, "Hello");
    rs.addRow(1, "World");
    return rs;
}
$$;

This works for me (tested in the H2 Console).

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