update the feature toggle usage in backend (#56787)

This commit is contained in:
ying-jeanne
2022-10-12 13:43:35 +02:00
committed by GitHub
parent 10c080dad1
commit 80ede174dd
4 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -289,7 +289,7 @@ func (ss *SQLStore) buildConnectionString() (string, error) {
cnnstr += fmt.Sprintf("&tx_isolation=%s", val)
}
if ss.Cfg.IsFeatureToggleEnabled("mysqlAnsiQuotes") || ss.Cfg.IsFeatureToggleEnabled("newDBLibrary") {
if ss.Cfg.IsFeatureToggleEnabled(featuremgmt.FlagMysqlAnsiQuotes) || ss.Cfg.IsFeatureToggleEnabled("newDBLibrary") {
cnnstr += "&sql_mode='ANSI_QUOTES'"
}