mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[jdbc] Reduce size for VARCHAR columns (#9394)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
parent
12112eb67a
commit
42de762b43
@ -46,6 +46,8 @@ public class JdbcMariadbDAO extends JdbcBaseDAO {
|
||||
*/
|
||||
private void initSqlTypes() {
|
||||
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
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user