google-code-export / h2database

Automatically exported from code.google.com/p/h2database
0 stars 1 forks source link

Regression with recent improvements of RESULT_SET data type? #333

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I seem to have the following regression (consider the attached database script):

------------------------------------------
PreparedStatement stmt = connection.prepareStatement(
  "select f_get_one_cursor(null) from dual");
ResultSet rs = stmt.executeQuery();
rs.next();
ResultSet cursor = (ResultSet) rs.getObject(1);
cursor.next();
ResultSetMetaData metaData = cursor.getMetaData();

// This is now null. It used to hold a value for the column type name
System.out.println(metaData.getColumnTypeName(1));
------------------------------------------

I guess this happens because of a recent improvement, maybe this one:

> A Java function that returns a result set that was generated
> using the provided connection could cause an internal error 
> in some cases. Now such result sets are copied early on.

It looks like SimpleResultSet is missing the implementation for precisely this 
method...

Original issue reported on code.google.com by lukas.eder@gmail.com on 17 Jul 2011 at 9:17

Attachments:

GoogleCodeExporter commented 9 years ago
Committed in the trunk

Original comment by thomas.t...@gmail.com on 22 Oct 2011 at 8:56

GoogleCodeExporter commented 9 years ago
Fixed in version 1.3.161

Original comment by thomas.t...@gmail.com on 28 Oct 2011 at 3:56

GoogleCodeExporter commented 9 years ago
Works now. Thanks!

Original comment by lukas.eder@gmail.com on 29 Oct 2011 at 11:28