mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge branch '10.1' into 10.2
This commit is contained in:
@ -2428,7 +2428,7 @@ int Field::set_default()
|
||||
/* Copy constant value stored in s->default_values */
|
||||
my_ptrdiff_t l_offset= (my_ptrdiff_t) (table->s->default_values -
|
||||
table->record[0]);
|
||||
memcpy(ptr, ptr + l_offset, pack_length());
|
||||
memcpy(ptr, ptr + l_offset, pack_length_in_rec());
|
||||
if (maybe_null_in_table())
|
||||
*null_ptr= ((*null_ptr & (uchar) ~null_bit) |
|
||||
(null_ptr[l_offset] & null_bit));
|
||||
|
Reference in New Issue
Block a user