Skip to content

Commit

Permalink
Revert "- Summary:"
Browse files Browse the repository at this point in the history
This reverts commit 92dba2d.
  • Loading branch information
xinzhao-actuate committed Nov 21, 2014
1 parent d87ac2b commit 3a1eec0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
Expand Up @@ -108,11 +108,6 @@ public String getColumnName( int index ) throws OdaException
* will return the actual name of the column, if it exists, and this name can *not* be used as input to
* ResultSet.findColumn() or ResultSet.get...(String).
*/
String label = rsMetadata.getColumnLabel( index );
if ( label != null && label.length() > 0 )
{
return label;
}
return rsMetadata.getColumnName( index );
}
catch ( SQLException e )
Expand Down
Expand Up @@ -417,24 +417,9 @@ private void getMetaUsingPolicy0( )
*/
private void getMetaUsingPolicy1( ) throws OdaException
{
try
{
this.cachedResultSet = executeQuery( );
if ( this.cachedResultSet != null )
{
cachedResultMetaData = this.cachedResultSet.getMetaData( );
}
}
catch ( OdaException e )
{
logger.log( Level.WARNING, e.getLocalizedMessage( ), e );
try
{
cachedResultMetaData = new ResultSetMetaData( this.preStat.getMetaData() );
} catch (SQLException e1) {
logger.log( Level.WARNING, e1.getLocalizedMessage( ), e1 );
}
}
this.cachedResultSet = executeQuery( );
if ( this.cachedResultSet != null )
cachedResultMetaData = this.cachedResultSet.getMetaData( );
}

private void getMetaUsingPolicy2( ) throws OdaException
Expand Down

0 comments on commit 3a1eec0

Please sign in to comment.