* @return CompositeType of columns table
* @throws SQLException If columnIndex is out of bounds
*/
CompositeType getRelType(int columnIndex) throws SQLException {
ResultField field = get(columnIndex);
if (field.relationId == 0)
return null;
return connection.getRegistry().loadRelationType(field.relationId);
}