@Test public void columnOrderOfgetTableTypes() throws SQLException { ResultSet rs = meta.getTableTypes(); assertTrue(rs.next()); ResultSetMetaData rsmeta = rs.getMetaData(); assertEquals(rsmeta.getColumnCount(), 1); assertEquals(rsmeta.getColumnName(1), "TABLE_TYPE"); }
public ResultSet getTableTypes() throws SQLException { _conn.checkOpen(); try { return DelegatingResultSet.wrapResultSet(_conn, _meta.getTableTypes()); } catch (SQLException e) { handleException(e); throw new AssertionError(); } }
@Test public void getTableTypes() throws SQLException { ResultSet rs = meta.getTableTypes(); assertNotNull(rs); assertTrue(rs.next()); assertEquals(rs.getString("TABLE_TYPE"), "TABLE"); assertTrue(rs.next()); assertEquals(rs.getString("TABLE_TYPE"), "VIEW"); assertFalse(rs.next()); }
public ResultSet getTableTypes() throws SQLException { return throwExceptionDelegate.getTableTypes(); }