You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
Fix a crash
This commit is contained in:
@@ -981,13 +981,13 @@ const char* calshowpartitions(UDF_INIT* initid, UDF_ARGS* args,
|
||||
} catch (IDBExcept& ex)
|
||||
{
|
||||
current_thd->get_stmt_da()->set_overwrite_status(true);
|
||||
current_thd->raise_error_printf(ER_CHECK_NOT_IMPLEMENTED, ex.what());
|
||||
current_thd->raise_error_printf(ER_INTERNAL_ERROR, ex.what());
|
||||
return result;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
current_thd->get_stmt_da()->set_overwrite_status(true);
|
||||
current_thd->raise_error_printf(ER_CHECK_NOT_IMPLEMENTED, "Error occured when calling CALSHOWPARTITIONS");
|
||||
current_thd->raise_error_printf(ER_INTERNAL_ERROR, "Error occured when calling CALSHOWPARTITIONS");
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -1749,19 +1749,19 @@ const char* calshowpartitionsbyvalue(UDF_INIT* initid, UDF_ARGS* args,
|
||||
args.add(ex.what());
|
||||
errMsg = IDBErrorInfo::instance()->errorMsg(ERR_INVALID_FUNC_ARGUMENT, args);
|
||||
current_thd->get_stmt_da()->set_overwrite_status(true);
|
||||
current_thd->raise_error_printf(ER_CHECK_NOT_IMPLEMENTED, (char*)errMsg.c_str());
|
||||
current_thd->raise_error_printf(ER_INTERNAL_ERROR, (char*)errMsg.c_str());
|
||||
return result;
|
||||
}
|
||||
catch (IDBExcept& ex)
|
||||
{
|
||||
current_thd->get_stmt_da()->set_overwrite_status(true);
|
||||
current_thd->raise_error_printf(ER_CHECK_NOT_IMPLEMENTED, ex.what());
|
||||
current_thd->raise_error_printf(ER_INTERNAL_ERROR, ex.what());
|
||||
return result;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
current_thd->get_stmt_da()->set_overwrite_status(true);
|
||||
current_thd->raise_error_printf(ER_CHECK_NOT_IMPLEMENTED, "Error occured when calling CALSHOWPARTITIONS");
|
||||
current_thd->raise_error_printf(ER_INTERNAL_ERROR, "Error occured when calling CALSHOWPARTITIONS");
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -1826,7 +1826,7 @@ const char* calshowpartitionsbyvalue(UDF_INIT* initid, UDF_ARGS* args,
|
||||
{
|
||||
errMsg = IDBErrorInfo::instance()->errorMsg(WARN_NO_PARTITION_FOUND);
|
||||
current_thd->get_stmt_da()->set_overwrite_status(true);
|
||||
current_thd->raise_error_printf(ER_CHECK_NOT_IMPLEMENTED, errMsg.c_str());
|
||||
current_thd->raise_error_printf(ER_INTERNAL_ERROR, errMsg.c_str());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user