diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-04-06 10:06:39 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-04-06 10:06:39 +0300 |
commit | cacb61b6be78b01a9c62890cc81d059ee46921ac (patch) | |
tree | 7065a7417d5569d5a5f61104daf09f6a98e842bc /sql/sql_lex.cc | |
parent | aed87f1e0aa20e9e3f525ff303ee766ca6b106b7 (diff) | |
parent | f089f8d95e569291bdf4329124c34674f02e40fe (diff) | |
download | mariadb-git-cacb61b6be78b01a9c62890cc81d059ee46921ac.tar.gz |
Merge 10.4 into 10.5
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index c2f2dc05da6..06ae88cbe2c 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -9180,18 +9180,18 @@ bool LEX::call_statement_start(THD *thd, (static_cast<const LEX_CSTRING*>(db))))) { my_error(ER_WRONG_DB_NAME, MYF(0), db->str); - return NULL; + return true; } if (check_routine_name(pkg) || check_routine_name(proc)) - return NULL; + return true; // Concat `pkg` and `name` to `pkg.name` LEX_CSTRING pkg_dot_proc; if (q_pkg_proc.make_qname(thd->mem_root, &pkg_dot_proc) || check_ident_length(&pkg_dot_proc) || !(spname= new (thd->mem_root) sp_name(db, &pkg_dot_proc, true))) - return NULL; + return true; sp_handler_package_function.add_used_routine(thd->lex, thd, spname); sp_handler_package_body.add_used_routine(thd->lex, thd, &q_db_pkg); |