summaryrefslogtreecommitdiffstats
path: root/sql/set_var.cc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:15:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:15:00 +0000
commita2a2e32c02643a0cec111511220227703fda1cd5 (patch)
tree69cc2b631234c2a8e026b9cd4d72676c61c594df /sql/set_var.cc
parentReleasing progress-linux version 1:10.11.8-1~progress7.99u1. (diff)
downloadmariadb-a2a2e32c02643a0cec111511220227703fda1cd5.tar.xz
mariadb-a2a2e32c02643a0cec111511220227703fda1cd5.zip
Merging upstream version 1:11.4.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r--sql/set_var.cc23
1 files changed, 5 insertions, 18 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc
index aa9ec5ab..61528b45 100644
--- a/sql/set_var.cc
+++ b/sql/set_var.cc
@@ -214,8 +214,9 @@ bool sys_var::update(THD *thd, set_var *var)
/*
Make sure we don't session-track variables that are not actually
- part of the session. tx_isolation and and tx_read_only for example
- exist as GLOBAL, SESSION, and one-shot ("for next transaction only").
+ part of the session. transaction_isolation and transaction_read_only for
+ example exist as GLOBAL, SESSION, and one-shot ("for next transaction
+ only").
*/
if ((var->type == OPT_SESSION) && (!ret))
{
@@ -310,7 +311,7 @@ do { \
case SHOW_HA_ROWS: do_num_val (ha_rows,CMD);
#define case_for_double(CMD) \
- case SHOW_DOUBLE: do_num_val (double,CMD)
+ case SHOW_DOUBLE: do_num_val (double,CMD);
#define case_get_string_as_lex_string \
case SHOW_CHAR: \
@@ -423,20 +424,7 @@ void sys_var::do_deprecated_warning(THD *thd)
{
char buf1[NAME_CHAR_LEN + 3];
strxnmov(buf1, sizeof(buf1)-1, "@@", name.str, 0);
-
- /*
- if deprecation_substitute is an empty string,
- there is no replacement for the syntax
- */
- uint errmsg= deprecation_substitute[0] == '\0'
- ? ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT
- : ER_WARN_DEPRECATED_SYNTAX;
- if (thd)
- push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN,
- ER_WARN_DEPRECATED_SYNTAX, ER_THD(thd, errmsg),
- buf1, deprecation_substitute);
- else
- sql_print_warning(ER_DEFAULT(errmsg), buf1, deprecation_substitute);
+ warn_deprecated<999999>(thd, buf1, deprecation_substitute);
}
}
@@ -1550,4 +1538,3 @@ ulonglong get_system_variable_hash_version(void)
{
return system_variable_hash_version;
}
-