~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_select.cc

  • Committer: Andrey Hristov
  • Date: 2008-08-06 00:04:45 UTC
  • mto: (264.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 266.
  • Revision ID: ahristov@mysql.com-20080806000445-84urmltikgwk9v5d
Constify the usage of CHARSET_INFO almost to the last place in the code.
99% of the parameters are const CHARSET_INFO * const cs.
Wherever possible stack variables are also double consted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8663
8663
 
8664
8664
      if (field_item->result_type() == STRING_RESULT)
8665
8665
      {
8666
 
        CHARSET_INFO *cs= ((Field_str*) field_item->field)->charset();
 
8666
        const CHARSET_INFO * const cs= ((Field_str*) field_item->field)->charset();
8667
8667
        if (!item)
8668
8668
        {
8669
8669
          Item_func_eq *eq_item;
17632
17632
  THD *thd=join->thd;
17633
17633
  select_result *result=join->result;
17634
17634
  Item *item_null= new Item_null();
17635
 
  CHARSET_INFO *cs= system_charset_info;
 
17635
  const CHARSET_INFO * const cs= system_charset_info;
17636
17636
  int quick_type;
17637
17637
  /* Don't log this into the slow query log */
17638
17638
  thd->server_status&= ~(SERVER_QUERY_NO_INDEX_USED | SERVER_QUERY_NO_GOOD_INDEX_USED);