mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Bug#6776
Failure to delete rows from mysql.func table caused by missing charset conversion for index read by pk.
This commit is contained in:
@ -493,8 +493,11 @@ int mysql_drop_function(THD *thd,const LEX_STRING *udf_name)
|
|||||||
tables.real_name= tables.alias= (char*) "func";
|
tables.real_name= tables.alias= (char*) "func";
|
||||||
if (!(table = open_ltable(thd,&tables,TL_WRITE)))
|
if (!(table = open_ltable(thd,&tables,TL_WRITE)))
|
||||||
goto err;
|
goto err;
|
||||||
if (!table->file->index_read_idx(table->record[0],0,(byte*) udf_name->str,
|
table->field[0]->store(udf_name.str, udf_name.length, system_charset_info);
|
||||||
(uint) udf_name->length,
|
table->file->extra(HA_EXTRA_RETRIEVE_ALL_COLS);
|
||||||
|
if (!table->file->index_read_idx(table->record[0], 0,
|
||||||
|
(byte*) table->field[0]->ptr,
|
||||||
|
table->key_info[0].key_length
|
||||||
HA_READ_KEY_EXACT))
|
HA_READ_KEY_EXACT))
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
|
Reference in New Issue
Block a user