mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
Fix error handling in last patch (BLOB's in temporary tables) if
create_tmp_table fails.
This commit is contained in:
parent
302a43f095
commit
0b54a5c3fc
1 changed files with 5 additions and 0 deletions
|
@ -3749,6 +3749,11 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields,
|
|||
DBUG_RETURN(table);
|
||||
|
||||
err:
|
||||
/*
|
||||
Hack to ensure that free_blobs() doesn't fail if blob_field is not yet
|
||||
complete
|
||||
*/
|
||||
*table->blob_field= 0;
|
||||
free_tmp_table(thd,table); /* purecov: inspected */
|
||||
bitmap_clear_bit(&temp_pool, temp_pool_slot);
|
||||
DBUG_RETURN(NULL); /* purecov: inspected */
|
||||
|
|
Loading…
Reference in a new issue