mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-18 10:08:40 +02:00
Warn about attempts to use escape quotes.
This commit is contained in:
@@ -13,7 +13,7 @@ var getMapPairsFromStringTest = []struct {
|
||||
}{
|
||||
{"log_statement:all, work_mem:'4GB'", []string{"log_statement:all", "work_mem:'4GB'"}, nil},
|
||||
{`log_statement:none, search_path:'"$user", public'`, []string{"log_statement:none", `search_path:'"$user", public'`}, nil},
|
||||
{`search_path:'"$user"`, nil, fmt.Errorf("unclosed quote starting at position 13")},
|
||||
{`search_path:'"$user"`, nil, fmt.Errorf("unmatched quote starting at position 13")},
|
||||
{"", []string{""}, nil},
|
||||
{",,log_statement:all ,", []string{"", "", "log_statement:all", ""}, nil},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user