Details
-
Task
-
Status: Stalled (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
Description
Remove the following pattern that can be seen anywhere in the Spider codebase.
if (str->reserve(SPIDER_SQL_WHERE_LEN)) |
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
|
str->q_append(SPIDER_SQL_WHERE_STR, SPIDER_SQL_WHERE_LEN);
|
This makes the code less readable and is error-prone (e.g., MDEV-27184).
Attachments
Issue Links
- relates to
-
MDEV-27184 Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed, Assertion `str.alloced_length() >= str.length() + data_len' failed
-
- Closed
-
-
MDEV-26384 Spider: add new query building helper function
-
- Closed
-
spider_string::q_append and other methods are modelled after String methods in sql/sql_string.h.
I think it'd be very confusing if methods with identical names (e.g. q_append) will start behaving differently in spider_string and String)