diff options
author | Sergei Golubchik <serg@mariadb.org> | 2021-10-08 18:43:56 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2021-10-26 17:29:40 +0200 |
commit | b73b736506109ecf09761e5c2b2693810a0b9ea6 (patch) | |
tree | fdf4a63592ad7e0e60239a2e8e7f0a9e59e1c42e /storage/connect/jsonudf.cpp | |
parent | a398fcbff6f73394135bc52d2197dc80a1f13fbf (diff) | |
download | mariadb-git-b73b736506109ecf09761e5c2b2693810a0b9ea6.tar.gz |
refactor THD::raise_condition() family
to remove
Sql_condition*
raise_condition(const Sql_condition *cond)
{
Sql_condition *raised= raise_condition(cond->get_sql_errno(),
cond->get_sqlstate(),
cond->get_level(),
*cond,
cond->get_message_text());
return raised;
}
Diffstat (limited to 'storage/connect/jsonudf.cpp')
-rw-r--r-- | storage/connect/jsonudf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/connect/jsonudf.cpp b/storage/connect/jsonudf.cpp index d38cf52699a..4a92990d233 100644 --- a/storage/connect/jsonudf.cpp +++ b/storage/connect/jsonudf.cpp @@ -9,6 +9,7 @@ /*********************************************************************************/ #include <my_global.h> #include <mysqld.h> +#include <mysqld_error.h> #include <mysql.h> #include <sql_error.h> #include <m_string.h> @@ -21,7 +22,7 @@ #define MEMFIX 4096 #if defined(connect_EXPORTS) -#define PUSH_WARNING(M) push_warning(current_thd, Sql_condition::WARN_LEVEL_WARN, 0, M) +#define PUSH_WARNING(M) push_warning(current_thd, Sql_condition::WARN_LEVEL_WARN, ER_UNKNOWN_ERROR, M) #else #define PUSH_WARNING(M) htrc(M) #endif |