mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Manual merge from mysql-trunk-merge.
Conflicts: - extra/comp_err.c - mysql-test/collections/default.experimental - mysql-test/r/archive.result - mysql-test/r/select.result - mysql-test/suite/binlog/r/binlog_unsafe.result - mysql-test/suite/binlog/t/binlog_unsafe.test - mysql-test/suite/rpl/t/disabled.def - mysql-test/t/archive.test - mysql-test/t/select.test - sql/item.cc - sql/item.h - sql/item_timefunc.cc - sql/sql_base.cc - sql/sql_delete.cc - sql/sql_load.cc - sql/sql_partition.cc - sql/sql_table.cc - storage/innobase/handler/ha_innodb.cc - vio/vio.c
This commit is contained in:
@ -438,17 +438,17 @@ invalid value '%s'",
|
||||
else if (optp->arg_type == OPT_ARG &&
|
||||
(((optp->var_type & GET_TYPE_MASK) == GET_BOOL) ||
|
||||
(optp->var_type & GET_TYPE_MASK) == GET_ENUM))
|
||||
{
|
||||
if (optend == disabled_my_option)
|
||||
*((my_bool*) value)= (my_bool) 0;
|
||||
else
|
||||
{
|
||||
if (!optend) /* No argument -> enable option */
|
||||
*((my_bool*) value)= (my_bool) 1;
|
||||
else
|
||||
argument= optend;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (optend == disabled_my_option)
|
||||
init_one_value(optp, value, 0);
|
||||
else
|
||||
{
|
||||
if (!optend) /* No argument -> enable option */
|
||||
init_one_value(optp, value, 1);
|
||||
else
|
||||
argument= optend;
|
||||
}
|
||||
}
|
||||
else if (optp->arg_type == REQUIRED_ARG && !optend)
|
||||
{
|
||||
/* Check if there are more arguments after this one,
|
||||
|
Reference in New Issue
Block a user