Commit 1dacf3ae authored by unknown's avatar unknown

fix for compilation failure in non-debug builds


sql/mysqld.cc:
  option -# and --debug, and default_dbug_option, do not exist in non-debug builds
parent b469b2da
...@@ -7444,6 +7444,7 @@ mysqld_get_one_option(int optid, ...@@ -7444,6 +7444,7 @@ mysqld_get_one_option(int optid,
char *argument) char *argument)
{ {
switch(optid) { switch(optid) {
#ifndef DBUG_OFF
case '#': case '#':
if (!argument) if (!argument)
argument= (char*) default_dbug_option; argument= (char*) default_dbug_option;
...@@ -7458,6 +7459,7 @@ mysqld_get_one_option(int optid, ...@@ -7458,6 +7459,7 @@ mysqld_get_one_option(int optid,
DBUG_SET_INITIAL(argument); DBUG_SET_INITIAL(argument);
opt_endinfo=1; /* unireg: memory allocation */ opt_endinfo=1; /* unireg: memory allocation */
break; break;
#endif
case 'a': case 'a':
global_system_variables.sql_mode= fix_sql_mode(MODE_ANSI); global_system_variables.sql_mode= fix_sql_mode(MODE_ANSI);
global_system_variables.tx_isolation= ISO_SERIALIZABLE; global_system_variables.tx_isolation= ISO_SERIALIZABLE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment