[jdbc] Reduce size for VARCHAR columns (#9394)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
Christoph Weitkamp 2020-12-16 07:36:35 +01:00 committed by GitHub
parent 12112eb67a
commit 42de762b43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,8 @@ public class JdbcMariadbDAO extends JdbcBaseDAO {
*/ */
private void initSqlTypes() { private void initSqlTypes() {
logger.debug("JDBC::initSqlTypes: Initialize the type array"); logger.debug("JDBC::initSqlTypes: Initialize the type array");
sqlTypes.put("IMAGEITEM", "VARCHAR(16255)");
sqlTypes.put("STRINGITEM", "VARCHAR(16255)"); // MariaDB using utf-8 max = 16383, using 16383-128 = 16255
} }
/** /**