value = valueStr.substring( 1, valueStr.length() - 1 );
} else if ( valueObj instanceof IPentahoResultSet ) {
IPentahoResultSet rs = (IPentahoResultSet) valueObj;
// See if we can find a column in the metadata with the same
// name as the input
IPentahoMetaData md = rs.getMetaData();
int columnIdx = -1;
if ( md.getColumnCount() == 1 ) {
columnIdx = 0;
} else {
columnIdx = md.getColumnIndex( new String[] { name } );
}
if ( columnIdx < 0 ) {
InputProperties.inputPropertiesLogger.error( Messages.getInstance().getErrorString(
"Template.ERROR_0005_COULD_NOT_DETERMINE_COLUMN" ) ); //$NON-NLS-1$
return null;