diff options
author | Sergei Golubchik <serg@mariadb.org> | 2020-02-15 18:25:57 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-03-10 19:24:23 +0100 |
commit | 7af733a5a2cb7f79ffb5ff0129cad6db6f3cc359 (patch) | |
tree | f8f9cab2cd92e43b5fd20c9ac77f9487ece4e5a7 /sql/sp.cc | |
parent | 81cffda2e68ea5a155b74f24ae4345388afa963c (diff) | |
download | mariadb-git-7af733a5a2cb7f79ffb5ff0129cad6db6f3cc359.tar.gz |
perfschema compilation, test and misc fixes
Diffstat (limited to 'sql/sp.cc')
-rw-r--r-- | sql/sp.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sp.cc b/sql/sp.cc index 67b6b6a1887..5ea7a0ab4ba 100644 --- a/sql/sp.cc +++ b/sql/sp.cc @@ -1108,8 +1108,8 @@ Sp_handler::sp_drop_routine_internal(THD *thd, if ((sp= sp_cache_lookup(spc, name))) sp_cache_flush_obsolete(spc, &sp); /* Drop statistics for this stored program from performance schema. */ - MYSQL_DROP_SP(type(), name->m_db.str, name->m_db.length, - name->m_name.str, name->m_name.length); + MYSQL_DROP_SP(type(), name->m_db.str, static_cast<uint>(name->m_db.length), + name->m_name.str, static_cast<uint>(name->m_name.length)); DBUG_RETURN(SP_OK); } @@ -1857,7 +1857,7 @@ sp_drop_db_routines(THD *thd, const char *db) enum_sp_type sp_type= (enum_sp_type) table->field[MYSQL_PROC_MYSQL_TYPE]->ptr[0]; /* Drop statistics for this stored program from performance schema. */ - MYSQL_DROP_SP(sp_type, db, db_length, name->ptr(), name->length()); + MYSQL_DROP_SP(sp_type, db, static_cast<uint>(db_length), name->ptr(), name->length()); #endif } else |