Changeset: ed499bf51b17 for monetdb-java
URL: https://dev.monetdb.org/hg/monetdb-java?cmd=changeset;node=ed499bf51b17
Modified Files:
        tests/Bug_PrepStmtSetObject_CLOB_6349.java
Branch: default
Log Message:

Extended test by also querying the prepared query resultset
 and report error if more than one row is returned.


diffs (15 lines):

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) {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to