summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2020-06-11 23:12:48 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2020-06-12 12:14:14 +0200
commit82f3ceed12063ac400a070b9c1972e139c59f385 (patch)
tree856b7e5f0b2afc73231311b5b84e698f751fa1f7 /sql/item_func.cc
parent8ec21afc8ed2df3b02815a45624b3287d5ffceae (diff)
downloadmariadb-git-82f3ceed12063ac400a070b9c1972e139c59f385.tar.gz
MDEV-16470: switch off user variables (and fixes of its support)bb-10.5-MDEV-22550
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index c3deae59960..f79bd9d59b3 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -4787,10 +4787,12 @@ update_hash(user_var_entry *entry, bool set_null, void *ptr, size_t length,
entry->unsigned_flag= unsigned_arg;
}
entry->type=type;
+#ifdef USER_VAR_TRACKING
#ifndef EMBEDDED_LIBRARY
THD *thd= current_thd;
thd->session_tracker.user_variables.mark_as_changed(thd, entry);
#endif
+#endif // USER_VAR_TRACKING
return 0;
}