title: MariaDB 10.2 , jdbcCompliantTruncation=false not working
body: <p>We have migrated from MariaDB 10.0 to 10.2 and now facing an issue related to data too long for column</p>
  
  <p>We were using <code>jdbcCompliantTruncation=false</code> in the DB connection string for MariaDB 10.0, and it was helping in truncating the long values for columns, and no exception as mentioned below were observed</p>
  
  <p>Exception encountered in MariadDb 10.2    </p>
  
  <pre><code>           org.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; 
             SQL [insert into table(column1,column2) values(?,?,?)(conn=21823) Data too long for column 'column2' at row 1; nested exception is java.sql.BatchUpdateException: (conn=21823) Data too long for column 'column2' at row 1
             at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:104)
             at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
             at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
             at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
             at org.springframework.jdbc.core.JdbcTemplate.translateException(JdbcTemplate.java:1402)
             at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:620)
             at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:634)
             at org.springframework.jdbc.core.JdbcTemplate.batchUpdate(JdbcTemplate.java:924)
  </code></pre>
  
  <p>Has something changed in MariaDB 10.2 or I am missing something.
  Any pointers in this direction will be highly appreciated.</p>