mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Enable ANSI_QUOTES for Mysql Database (#53277)
* remove the quote dialect * add environment variable
This commit is contained in:
@@ -72,6 +72,12 @@ var sqlStoreTestCases = []sqlStoreTest{
|
||||
dbURL: "://invalid.com/",
|
||||
err: &url.Error{Op: "parse", URL: "://invalid.com/", Err: errors.New("missing protocol scheme")},
|
||||
},
|
||||
{
|
||||
name: "Sql mode set to ANSI_QUOTES",
|
||||
dbType: "mysql",
|
||||
dbHost: "[::1]",
|
||||
connStrValues: []string{"sql_mode='ANSI_QUOTES'"},
|
||||
},
|
||||
}
|
||||
|
||||
func TestIntegrationSQLConnectionString(t *testing.T) {
|
||||
@@ -112,5 +118,7 @@ func makeSQLStoreTestConfig(t *testing.T, dbType, host, dbURL string) *setting.C
|
||||
_, err = sec.NewKey("password", "pass")
|
||||
require.NoError(t, err)
|
||||
|
||||
cfg.IsFeatureToggleEnabled = func(key string) bool { return true }
|
||||
|
||||
return cfg
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user