We currently emit DDL types e.g. clob/blob}}when the size/length exceeds a certain value, but the {{JdbcType still is varchar/varbinary, which causes issues on certain databases where the JDBC driver does not support setString/setBytes for clob/blob, so we should adjust the types based on size also. After doing so, we could actually stop using clob/blob}}as biggest types for {{varchar/varbinary. It might be interesting to add new SqlTypes codes e.g. MATERIALIZED_CLOB and MATERIALIZED_BLOB for which we register JdbcType}}that bind through {{setString/setBytes. We would control this based on knowledge about whether the driver supports this through e.g. Dialect#supportsMaterializedLobAccess |