mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
5.5 merge
This commit is contained in:
@ -879,7 +879,7 @@ static bool insert_params_with_log(Prepared_statement *stmt, uchar *null_array,
|
||||
if (param->state == Item_param::NO_VALUE)
|
||||
DBUG_RETURN(1);
|
||||
|
||||
if (param->limit_clause_param && param->item_type != Item::INT_ITEM)
|
||||
if (param->limit_clause_param)
|
||||
{
|
||||
param->set_int(param->val_int(), MY_INT64_NUM_DECIMAL_DIGITS);
|
||||
param->item_type= Item::INT_ITEM;
|
||||
@ -1503,7 +1503,8 @@ static int mysql_test_select(Prepared_statement *stmt,
|
||||
|
||||
if (!lex->result && !(lex->result= new (stmt->mem_root) select_send))
|
||||
{
|
||||
my_error(ER_OUTOFMEMORY, MYF(0), static_cast<int>(sizeof(select_send)));
|
||||
my_error(ER_OUTOFMEMORY, MYF(ME_FATALERROR),
|
||||
static_cast<int>(sizeof(select_send)));
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -1877,7 +1878,7 @@ static bool mysql_test_multidelete(Prepared_statement *stmt,
|
||||
stmt->thd->lex->current_select= &stmt->thd->lex->select_lex;
|
||||
if (add_item_to_list(stmt->thd, new Item_null()))
|
||||
{
|
||||
my_error(ER_OUTOFMEMORY, MYF(0), 0);
|
||||
my_error(ER_OUTOFMEMORY, MYF(ME_FATALERROR), 0);
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -3863,7 +3864,7 @@ bool Prepared_statement::execute(String *expanded_query, bool open_cursor)
|
||||
alloc_query(thd, (char*) expanded_query->ptr(),
|
||||
expanded_query->length()))
|
||||
{
|
||||
my_error(ER_OUTOFMEMORY, 0, expanded_query->length());
|
||||
my_error(ER_OUTOFMEMORY, MYF(ME_FATALERROR), expanded_query->length());
|
||||
goto error;
|
||||
}
|
||||
/*
|
||||
|
Reference in New Issue
Block a user