title: Spring JdbcTemplate throwing 17004 Invalid column type whtn I insert
body: <p>This code in my Spring Boot app is very simple but its throwing:</p>
  
  <pre><code>org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [INSERT INTO decisions_cache_log ( server_ip, server_hostname, cache_type, load_time) VALUES (?, ?, ?, ?)]; SQL state [99999]; error code [17004]; Invalid column type; nested exception is java.sql.SQLException: Invalid column type
  at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:84) ~[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
  at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) ~[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
  at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) ~[spring-jdbc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
  </code></pre>
  
  <p>Here is the code:</p>
  
  <pre><code>            lastCacheLoadCredentials = ZonedDateTime.now();
  
          sql = "INSERT INTO decisions_cache_log ( server_ip, server_hostname, cache_type, load_time) VALUES (?, ?, ?, ?)";
          Object params = new Object[] { "a", "b", "c", lastCacheLoadCredentials.toString() };
          int[] types = new int[] { Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR }; 
  
          jdbcTemplate.update(sql, params, types);
  </code></pre>
  
  <p>All four columns in this Oracle 10 database are VARCHAR2</p>
  
  <p>Thanks...  </p>