• Monty's avatar
    MDEV-6152: Remove calls to current_thd while creating Item · 3bca8db4
    Monty authored
    - Part 4: Removing calls to sql_alloc() and sql_calloc()
    
    Other things:
    - Added current_thd in some places to make it clear that it's called (easier to remove later)
    - Move memory allocation from Item_func_case::fix_length_and_dec() to Item_func_case::fix_fields()
    - Added mem_root to some new calls
    - Fixed some wrong UNINIT_VAR() calls
    - Fixed a bug in generate_partition_syntax() in case of errors
    - Added mem_root to argument to new thread_info
    - Simplified my_parse_error() call in sql_yacc.yy
    3bca8db4
item_func.h 66.3 KB