src/main/java/com/aoindustries/dbc/DatabaseConnection.java
@SuppressWarnings("deprecation")
	private static String getRow(ResultSet result) throws SQLException {
		StringBuilder sb = new StringBuilder();
		sb.append('(');
		ResultSetMetaData metaData = result.getMetaData();
		int colCount = metaData.getColumnCount();
		for(int c=1; c<=colCount; c++) {
			if(c>1) sb.append(", ");
			int colType = metaData.getColumnType(c);
			switch(colType) {
				case Types.BIGINT :
				case Types.BIT :
				case Types.BOOLEAN :
				case Types.DECIMAL :
				case Types.DOUBLE :
				case Types.FLOAT :
				case Types.INTEGER :
				case Types.NUMERIC :
				case Types.REAL :
				case Types.SMALLINT :
				case Types.TINYINT :
					sb.append(result.getObject(c));
					break;
				case Types.CHAR :
				case Types.DATE :
				case Types.LONGNVARCHAR :
				case Types.LONGVARCHAR :
				case Types.NCHAR :
				case Types.NVARCHAR :
				case Types.TIME :
				case Types.TIMESTAMP :
				case Types.VARCHAR :
				default :
					sb.append('\'');
					SQLUtility.escapeSQL(result.getString(c), sb);
					sb.append('\'');
					break;
				//default :
				//    throw new SQLException("Unexpected column type: "+colType);
			}
		}
		sb.append(')');
		return sb.toString();
	}
@SuppressWarnings("deprecation")
	private static String getRow(ResultSet result) throws SQLException {
		StringBuilder sb = new StringBuilder();
		sb.append('(');
		ResultSetMetaData metaData = result.getMetaData();
		int colCount = metaData.getColumnCount();
		for(int c=1; c<=colCount; c++) {
			if(c>1) sb.append(", ");
			int colType = metaData.getColumnType(c);
			switch(colType) {
				case Types.BIGINT :
				case Types.BIT :
				case Types.BOOLEAN :
				case Types.DECIMAL :
				case Types.DOUBLE :
				case Types.FLOAT :
				case Types.INTEGER :
				case Types.NUMERIC :
				case Types.REAL :
				case Types.SMALLINT :
				case Types.TINYINT :
					sb.append(result.getObject(c));
					break;
				case Types.CHAR :
				case Types.DATE :
				case Types.LONGNVARCHAR :
				case Types.LONGVARCHAR :
				case Types.NCHAR :
				case Types.NVARCHAR :
				case Types.TIME :
				case Types.TIMESTAMP :
				case Types.VARCHAR :
				default :
					sb.append('\'');
					SQLUtility.escapeSQL(result.getString(c), sb);
					sb.append('\'');
					break;
				//default :
				//    throw new SQLException("Unexpected column type: "+colType);
			}
		}
		sb.append(')');
		return sb.toString();
	}
@ SuppressWarnings ( "deprecation" ) private static String getRow ( ResultSet result ) throws SQLException { StringBuilder sb = new StringBuilder ( ) ; sb . append ( ' ' ) ; ResultSetMetaData metaData = result . getMetaData ( ) ; int colCount = metaData . getColumnCount ( ) ; for ( int c = 1 ; c <= colCount ; c ++ ) { if ( c > 1 ) sb . append ( ", " ) ; int colType = metaData . getColumnType ( c ) ; switch ( colType ) { case Types . BIGINT : case Types . BIT : case Types . BOOLEAN : case Types . DECIMAL : case Types . DOUBLE : case Types . FLOAT : case Types . INTEGER : case Types . NUMERIC : case Types . REAL : case Types . SMALLINT : case Types . TINYINT : sb . append ( result . getObject ( c ) ) ; break ; case Types . CHAR : case Types . DATE : case Types . LONGNVARCHAR : case Types . LONGVARCHAR : case Types . NCHAR : case Types . NVARCHAR : case Types . TIME : case Types . TIMESTAMP : case Types . VARCHAR : default : sb . append ( ' ' ) ; SQLUtility . escapeSQL ( result . getString ( c ) , sb ) ; sb . append ( ' ' ) ; break ; //default : //    throw new SQLException("Unexpected column type: "+colType); } } sb . append ( ' ' ) ; return sb . toString ( ) ; }
Gets a user-friendly description of the provided result in a string formatted like
<code>('value', 'value', int_value, ...)</code>.  This must not be used generate
SQL statements - it is just to provider user display.
Gets a user - friendly description of the provided result in a string formatted like <code > ( value value int_value ... ) < / code > . This must not be used generate SQL statements - it is just to provider user display .