Details
-
Task
-
Status: Closed (View Workflow)
-
Trivial
-
Resolution: Fixed
-
None
Description
Consider:
extern my_bool init_dynamic_string(DYNAMIC_STRING *str, const char *init_str,
|
size_t init_alloc,size_t alloc_increment);
|
vs:
extern my_bool init_dynamic_array2(PSI_memory_key psi_key, DYNAMIC_ARRAY *array,
|
uint element_size, void *init_buffer,
|
uint init_alloc, uint alloc_increment,
|
myf my_flags);
|
I expect the values of init_alloc and alloc_increment to be size_t for DYNAMIC_ARRAY just like they are for DYNAMIC_STRING.
Attachments
Issue Links
- causes
-
MDEV-29124 ASAN errors in st_select_lex::print / With_element::print with optimizer trace on 2nd execution of PS
-
- Confirmed
-
-
MDEV-35431 my_snprintf fixes for 10.11+
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Consider:
{code:C} extern my_bool init_dynamic_string(DYNAMIC_STRING *str, const char *init_str, size_t init_alloc,size_t alloc_increment); {code} vs: {code:C} extern my_bool init_dynamic_array2(PSI_memory_key psi_key, DYNAMIC_ARRAY *array, uint element_size, void *init_buffer, uint init_alloc, uint alloc_increment, myf my_flags); {code} I expect the values of {{monospaced}}init_alloc{{monospaced}} and {{monospaced}}alloc_increment{{monospaced}} to be {{monospaced}}size_t{{monospaced}} for {{monospaced}}DYNAMIC_ARRAY{{monospaced}} just like they are for {{monospaced}}DYNAMIC_STRING{{monospaced}}. |
Consider:
{code:C} extern my_bool init_dynamic_string(DYNAMIC_STRING *str, const char *init_str, size_t init_alloc,size_t alloc_increment); {code} vs: {code:C} extern my_bool init_dynamic_array2(PSI_memory_key psi_key, DYNAMIC_ARRAY *array, uint element_size, void *init_buffer, uint init_alloc, uint alloc_increment, myf my_flags); {code} I expect the values of {{init_alloc}} and {{alloc_increment}} to be {{size_t}} for {{DYNAMIC_ARRAY}} just like they are for {{DYNAMIC_STRING}}. |
Priority | Major [ 3 ] | Trivial [ 5 ] |
Assignee | Vicențiu Ciorbaru [ cvicentiu ] |
Fix Version/s | 10.7 [ 24805 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Component/s | Server [ 13907 ] | |
Fix Version/s | 10.7.1 [ 26120 ] | |
Fix Version/s | 10.7 [ 24805 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 123815 ] | MariaDB v4 [ 134456 ] |
Link | This issue causes MDEV-29124 [ MDEV-29124 ] |
Link |
This issue causes |