ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);
ResultSet rs = stmt.executeQuery(
"SELECT * FROM tableWithPrimaryKey FOR UPDATE");
assertTrue("FAIL - row not found", rs.next());
try {
rs.deleteRow();
fail("FAIL - deleteRow should have failed because it will cause " +
"foreign key constraint failure");
} catch (SQLException e) {
assertSQLState("23503", e);
}