update the feature toggle usage in backend (#56787)

This commit is contained in:
ying-jeanne authored and GitHub committed 2022-10-12 13:43:35 +02:00
1 parent 10c080dad1
commit 80ede174dd
4 files changed
+11 -1

No files matched your search

+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'"
}