Mercurial > hg > monetdb-java
changeset 132:ed499bf51b17
Extended test by also querying the prepared query resultset
and report error if more than one row is returned.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 13 Jul 2017 16:06:07 +0200 (2017-07-13) |
parents | 0112d8496636 |
children | 92a1b08a1018 |
files | tests/Bug_PrepStmtSetObject_CLOB_6349.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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) {