Skip to content

Commit

Permalink
#RAD-2271 added missing breaks to switch statement (#1847)
Browse files Browse the repository at this point in the history
Co-authored-by: Pier Puccini <pierpuccini@users.noreply.github.com>
  • Loading branch information
pierpuccini and pierpuccini committed Apr 18, 2023
1 parent a736cee commit 80b6e89
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

package com.serotonin.m2m2.db.upgrade;

import java.util.Optional;

import com.infiniteautomation.mango.db.tables.SystemSettings;
import org.jooq.DSLContext;

import com.infiniteautomation.mango.db.tables.SystemSettings;
import java.util.Optional;

/**
* Used to get/set system settings before DAOs are initialized
Expand Down Expand Up @@ -43,6 +42,7 @@ default void setSystemSetting(String key, String value) {
.onDuplicateKeyUpdate()
.set(table.settingValue, value)
.execute();
break;
case POSTGRES:
getContext().insertInto(table)
.columns(table.settingValue, table.settingName)
Expand All @@ -51,6 +51,7 @@ default void setSystemSetting(String key, String value) {
.doUpdate()
.set(table.settingValue, value)
.execute();
break;
default:
getContext().mergeInto(table)
.using(getContext().selectOne())
Expand All @@ -60,6 +61,7 @@ default void setSystemSetting(String key, String value) {
.whenNotMatchedThenInsert(table.settingValue, table.settingName)
.values(value, key)
.execute();
break;
}

}
Expand Down

0 comments on commit 80b6e89

Please sign in to comment.