mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Manual merge
configure.in: Auto merged mysql-test/r/func_misc.result: Auto merged mysql-test/r/myisam.result: Auto merged mysql-test/r/partition.result: Auto merged mysql-test/r/partition_symlink.result: Auto merged mysql-test/t/func_misc.test: Auto merged mysql-test/t/partition.test: Auto merged sql/field.cc: Auto merged sql/field.h: Auto merged sql/item.cc: Auto merged sql/item_func.cc: Auto merged sql/item_func.h: Auto merged sql/log.cc: Auto merged sql/mysql_priv.h: Auto merged sql/partition_info.cc: Auto merged sql/partition_info.h: Auto merged sql/rpl_rli.cc: Auto merged sql/sql_plugin.cc: Auto merged sql/sql_show.cc: Auto merged sql/sql_parse.cc: Manual merge. Needs later fix. New code in create table was not accepted. Needs to be added to mysql_create_table_no_lock().
This commit is contained in:
@@ -210,6 +210,8 @@ static void reap_plugins(void);
|
||||
|
||||
/* declared in set_var.cc */
|
||||
extern sys_var *intern_find_sys_var(const char *str, uint length, bool no_error);
|
||||
extern bool throw_bounds_warning(THD *thd, bool fixed, bool unsignd,
|
||||
const char *name, longlong val);
|
||||
|
||||
#ifdef EMBEDDED_LIBRARY
|
||||
/* declared in sql_base.cc */
|
||||
@@ -1907,16 +1909,8 @@ static int check_func_int(THD *thd, struct st_mysql_sys_var *var,
|
||||
else
|
||||
*(int *)save= (int) getopt_ll_limit_value(tmp, &options, &fixed);
|
||||
|
||||
if (fixed)
|
||||
{
|
||||
char buf[22];
|
||||
push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||
ER_TRUNCATED_WRONG_VALUE,
|
||||
ER(ER_TRUNCATED_WRONG_VALUE), var->name,
|
||||
ullstr(tmp, buf));
|
||||
}
|
||||
return (thd->variables.sql_mode & MODE_STRICT_ALL_TABLES) &&
|
||||
(*(int *)save != (int) tmp);
|
||||
return throw_bounds_warning(thd, fixed, var->flags & PLUGIN_VAR_UNSIGNED,
|
||||
var->name, (longlong) tmp);
|
||||
}
|
||||
|
||||
|
||||
@@ -1935,16 +1929,8 @@ static int check_func_long(THD *thd, struct st_mysql_sys_var *var,
|
||||
else
|
||||
*(long *)save= (long) getopt_ll_limit_value(tmp, &options, &fixed);
|
||||
|
||||
if (fixed)
|
||||
{
|
||||
char buf[22];
|
||||
push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||
ER_TRUNCATED_WRONG_VALUE,
|
||||
ER(ER_TRUNCATED_WRONG_VALUE), var->name,
|
||||
ullstr(tmp, buf));
|
||||
}
|
||||
return (thd->variables.sql_mode & MODE_STRICT_ALL_TABLES) &&
|
||||
(*(long *)save != (long) tmp);
|
||||
return throw_bounds_warning(thd, fixed, var->flags & PLUGIN_VAR_UNSIGNED,
|
||||
var->name, (longlong) tmp);
|
||||
}
|
||||
|
||||
|
||||
@@ -1963,16 +1949,8 @@ static int check_func_longlong(THD *thd, struct st_mysql_sys_var *var,
|
||||
else
|
||||
*(longlong *)save= getopt_ll_limit_value(tmp, &options, &fixed);
|
||||
|
||||
if (fixed)
|
||||
{
|
||||
char buf[22];
|
||||
push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||
ER_TRUNCATED_WRONG_VALUE,
|
||||
ER(ER_TRUNCATED_WRONG_VALUE), var->name,
|
||||
ullstr(tmp, buf));
|
||||
}
|
||||
return (thd->variables.sql_mode & MODE_STRICT_ALL_TABLES) &&
|
||||
(*(long long *)save != tmp);
|
||||
return throw_bounds_warning(thd, fixed, var->flags & PLUGIN_VAR_UNSIGNED,
|
||||
var->name, (longlong) tmp);
|
||||
}
|
||||
|
||||
static int check_func_str(THD *thd, struct st_mysql_sys_var *var,
|
||||
|
Reference in New Issue
Block a user