~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/index_hint.cc

  • Committer: Mark Atwood
  • Date: 2011-08-21 06:56:57 UTC
  • mfrom: (2385.3.34 rf)
  • Revision ID: me@mark.atwood.name-20110821065657-vk2at03z9u17mf1d
mergeĀ lp:~olafvdspek/drizzle/refactor7

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 * @param Session pointer
55
55
 * @param[out] Appends the index hint here
56
56
 */
57
 
void Index_hint::print(Session *session, String *str)
 
57
void Index_hint::print(String& str) const
58
58
{
59
 
  str->append(STRING_WITH_LEN(index_hint_type_name[type]));
60
 
  str->append(STRING_WITH_LEN(" ("));
61
 
  if (key_name.length)
 
59
  str.append(STRING_WITH_LEN(index_hint_type_name[type]));
 
60
  str.append(STRING_WITH_LEN(" ("));
 
61
  if (*key_name)
62
62
  {
63
 
    if (session && is_primary_key_name(key_name.str))
64
 
      str->append(is_primary_key_name(key_name.str));
 
63
    if (is_primary_key(key_name))
 
64
      str.append(key_name);
65
65
    else
66
 
      str->append_identifier(key_name.str, key_name.length);
 
66
      str.append_identifier(str_ref(key_name));
67
67
  }
68
 
  str->append(')');
 
68
  str.append(')');
69
69
}
70
70
 
71
71
} /* namespace drizzled */