Skip to content
Permalink
Browse files

0002664: Misc performance improvements

  • Loading branch information...
chenson42 committed Jul 12, 2016
1 parent 2c31eb1 commit ca88c79f17722c51736a51faabac842c02265765
Showing with 7 additions and 0 deletions.
  1. +7 −0 symmetric-jdbc/src/main/java/org/jumpmind/db/sql/JdbcSqlTemplate.java
@@ -517,6 +517,10 @@ public static String lookupColumnName(ResultSetMetaData resultSetMetaData, int c
}
return name;
}

public static Object getResultSetValue(ResultSet rs, int index, boolean readStringsAsBytes) throws SQLException {
return getResultSetValue(rs, null, index, readStringsAsBytes);
}

/**
* Retrieve a JDBC column value from a ResultSet, using the most appropriate
@@ -545,6 +549,9 @@ public static String lookupColumnName(ResultSetMetaData resultSetMetaData, int c
* @see java.sql.Timestamp
*/
public static Object getResultSetValue(ResultSet rs, ResultSetMetaData metaData, int index, boolean readStringsAsBytes) throws SQLException {
if (metaData == null) {
metaData = rs.getMetaData();
}
Object obj = null;
int jdbcType = metaData.getColumnType(index);
String jdbcTypeName = metaData.getColumnTypeName(index);

0 comments on commit ca88c79

Please sign in to comment.
You can’t perform that action at this time.