Open jimduchek opened 5 years ago
Might be fixed by #5820
Might be fixed by #5820
At a quick glance at the code, it appears that indeed fixes this issue. Unfortunately I can't even remember why I needed this fixed! :laughing:
For me the main reason is that the wrong behavior led to a (wrong) timezone offset with postgres and grafana. I'll try the new version from #5820 in a few days.
Timezones! That was it for me too. :)
Quick summary: setSqlTypes() in JdbcConfiguration.java sets all 'sqltype' configs to uppercase and appends 'ITEM'. This is fine when you're trying to set the value for, say, 'SWITCHITEM'. initSqlTypes() in JdbcBaseDAO.java -- 'tablePrimaryKey' and 'tablePrimaryValue' can therefore not be configured, as they are not all-uppercase, nor do they end in 'ITEM'.
Quickest fix would be to change to TABLEPRIMARYKEYITEM (and leave setSqlTypes() unchanged), but as these two values serve a slightly different purpose than all the others, I'm not sure that's the correct-est way.