~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/get_system_var.cc

Extracted the LOAD command into its own class and implementation files.
Removed the corresponding case label from the switch statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
    return 0;
74
74
  if (component.str)
75
75
  {
76
 
    my_error(ER_VARIABLE_IS_NOT_STRUCT, MYF(0), base_name->str);
77
 
    return 0;
 
76
    if (!var->is_struct())
 
77
    {
 
78
      my_error(ER_VARIABLE_IS_NOT_STRUCT, MYF(0), base_name->str);
 
79
      return 0;
 
80
    }
78
81
  }
79
82
 
80
83
  set_if_smaller(component_name->length, (size_t)MAX_SYS_VAR_LENGTH);