public void testGetColumnsMetaData() throws Exception {
  DatabaseMetaData dmd=con.getMetaData();
  ResultSet rs=dmd.getColumns(null,null,"Table doesn't exist",null);
  assertNotNull(rs);
  ResultSetMetaData rsmd=rs.getMetaData();
  assertNotNull(rsmd.getCatalogName(1));
  assertNotNull(rsmd.getColumnClassName(1));
  rsmd.getColumnCount();
  assertTrue(0 != rsmd.getColumnDisplaySize(1));
  assertNotNull(rsmd.getColumnLabel(1));
  assertNotNull(rsmd.getColumnName(1));
  rsmd.getColumnType(1);
  assertNotNull(rsmd.getColumnTypeName(1));
  rsmd.getPrecision(1);
  rsmd.getScale(1);
  assertNotNull(rsmd.getSchemaName(1));
  assertNotNull(rsmd.getTableName(1));
  rsmd.isAutoIncrement(1);
  rsmd.isCaseSensitive(1);
  rsmd.isCurrency(1);
  rsmd.isDefinitelyWritable(1);
  rsmd.isNullable(1);
  rsmd.isReadOnly(1);
  rsmd.isSearchable(1);
  rsmd.isSigned(1);
  rsmd.isWritable(1);
  rs.close();
}

public void testGetColumnsMetaData ( ) throws Exception { DatabaseMetaData dmd = con . getMetaData ( ) ; ResultSet rs = dmd . getColumns ( null , null , "Table doesn't exist" , null ) ; assertNotNull ( rs ) ; ResultSetMetaData rsmd = rs . getMetaData ( ) ; assertNotNull ( rsmd . getCatalogName ( 1 ) ) ; assertNotNull ( rsmd . getColumnClassName ( 1 ) ) ; rsmd . getColumnCount ( ) ; assertTrue ( 0 != rsmd . getColumnDisplaySize ( 1 ) ) ; assertNotNull ( rsmd . getColumnLabel ( 1 ) ) ; assertNotNull ( rsmd . getColumnName ( 1 ) ) ; rsmd . getColumnType ( 1 ) ; assertNotNull ( rsmd . getColumnTypeName ( 1 ) ) ; rsmd . getPrecision ( 1 ) ; rsmd . getScale ( 1 ) ; assertNotNull ( rsmd . getSchemaName ( 1 ) ) ; assertNotNull ( rsmd . getTableName ( 1 ) ) ; rsmd . isAutoIncrement ( 1 ) ; rsmd . isCaseSensitive ( 1 ) ; rsmd . isCurrency ( 1 ) ; rsmd . isDefinitelyWritable ( 1 ) ; rsmd . isNullable ( 1 ) ; rsmd . isReadOnly ( 1 ) ; rsmd . isSearchable ( 1 ) ; rsmd . isSigned ( 1 ) ; rsmd . isWritable ( 1 ) ; rs . close ( ) ; }
test for bug [ 1120168 ] jtds 101 - tds data type 0 invalid .
