# HG changeset patch # User Martin van Dinther <martin.van.dinther@monetdbsolutions.com> # Date 1499954767 -7200 # Node ID ed499bf51b171774a42c788efe7c84c06f2696fc # Parent 0112d849663678e3d93f9e9c906eca30904ec468 Extended test by also querying the prepared query resultset and report error if more than one row is returned. diff --git a/tests/Bug_PrepStmtSetObject_CLOB_6349.java b/tests/Bug_PrepStmtSetObject_CLOB_6349.java --- a/tests/Bug_PrepStmtSetObject_CLOB_6349.java +++ b/tests/Bug_PrepStmtSetObject_CLOB_6349.java @@ -36,6 +36,11 @@ public class Bug_PrepStmtSetObject_CLOB_ rsmd = rs.getMetaData(); System.out.println("Query ResultSet has " + rsmd.getColumnCount() + " columns. Type of first is: " + rsmd.getColumnTypeName(1)); + boolean has_row = rs.next(); + boolean has_rows = rs.next(); + if (has_row == false || has_rows == true) + System.out.println("Fetching Query ResultSet failed"); + stmt.executeUpdate("DROP TABLE PrepStmtSetObject_CLOB"); } catch (SQLException e) {