Skip to content

Commit d52edb7

Browse files
author
Tor Didriksen
committed
Bug#23072792 MYSQL_GROUP_SUFFIX DOES NOT WORK
Reintroduce environment variable MYSQL_GROUP_SUFFIX to be used as --default-group-suffix value if not already set. The environment variable was accidentally renamed to DEFAULT_GROUP_SUFFIX_ENV in MySQL server 5.5.
1 parent 43632f4 commit d52edb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mysys/default.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -234,7 +234,7 @@ int my_search_option_files(const char *conf_file, int *argc, char ***argv,
234234
(char **) &my_defaults_group_suffix);
235235

236236
if (! my_defaults_group_suffix)
237-
my_defaults_group_suffix= getenv(STRINGIFY_ARG(DEFAULT_GROUP_SUFFIX_ENV));
237+
my_defaults_group_suffix= getenv("MYSQL_GROUP_SUFFIX");
238238

239239
if (forced_extra_defaults && !defaults_already_read)
240240
{

0 commit comments

Comments
 (0)