~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/index_hint.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-19 07:54:11 UTC
  • mto: This revision was merged to the branch mainline in revision 2408.
  • Revision ID: olafvdspek@gmail.com-20110819075411-qd7r0oqspc9ogvz7
Undo change

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
  str.append(STRING_WITH_LEN(index_hint_type_name[type]));
60
60
  str.append(STRING_WITH_LEN(" ("));
61
61
  if (*key_name)
62
 
    str.append_identifier(str_ref(key_name));
 
62
  {
 
63
    if (is_primary_key_name(key_name))
 
64
      str.append(key_name);
 
65
    else
 
66
      str.append_identifier(str_ref(key_name));
 
67
  }
63
68
  str.append(')');
64
69
}
65
70