diff options
author | Alexander Barkov <bar@mariadb.org> | 2016-08-08 16:42:01 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-04-05 15:02:39 +0400 |
commit | 892af78085482bb304947e7856bfd1b8def37c83 (patch) | |
tree | 54fd3b2ca25fa90c264d56b10785c326e6aaa876 /sql/set_var.cc | |
parent | 7e10e38825f5cf02048a3cc69aea9d440e3140ba (diff) | |
download | mariadb-git-892af78085482bb304947e7856bfd1b8def37c83.tar.gz |
MDEV-10411 Providing compatibility for basic PL/SQL constructs
Part6: assignment operator
var:= 10;
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r-- | sql/set_var.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc index 07395e3e708..a5b80e34993 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -686,6 +686,17 @@ sys_var *intern_find_sys_var(const char *str, uint length) } +bool find_sys_var_null_base(THD *thd, struct sys_var_with_base *tmp) +{ + tmp->var= find_sys_var(thd, tmp->base_name.str, tmp->base_name.length); + + if (tmp->var != NULL) + tmp->base_name= null_lex_str; + + return thd->is_error(); +} + + /** Execute update of all variables. |