• Andy Wilkinson's avatar
    Avoid RS.getObject(index, Object.class) as it breaks MySQL on Java 7 · 333bc3e8
    Andy Wilkinson authored
    Previously, when running on Java 7+, the JDBC query driven by
    DataSourceHealthIndicator resulted in a call to
    ResultSet.getObject(index, Object.class). When using MySQL's JDBC
    driver this failed with an SQLException with the message "Conversion
    not supported for type java.lang.Object". The problem does not occur
    on Java 6 as the overload of getObject that takes a type does not
    exist; ResultSet.getObject(index) is called instead and MySQL happily
    returns whatever type it deems to be appropriate for the column.
    
    This commit updates DataSourceHealthIndicator so that
    ResultSet.getObject(index) will always be used, irrespective of the
    version of Java that Boot is running on.
    
    Closes #1306
    333bc3e8
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
spring-boot-versions Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...