~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/handler/handler0alter.cc

  • Committer: Brian Aker
  • Date: 2011-11-20 18:59:19 UTC
  • mto: (2463.1.1 drizzle-include)
  • mto: This revision was merged to the branch mainline in revision 2465.
  • Revision ID: brian@tangent.org-20111120185919-8a0og41w2nn8redh
Small correction to style.

Show diffs side-by-side

added added

removed removed

Lines of Context:
516
516
        /* If there is a primary key, it is always the first index
517
517
        defined for the table. */
518
518
 
519
 
        new_primary = !my_strcasecmp(system_charset_info,
520
 
                                     key_info->name, "PRIMARY");
 
519
        new_primary = !system_charset_info->strcasecmp(key_info->name, "PRIMARY");
521
520
 
522
521
        /* If there is a UNIQUE INDEX consisting entirely of NOT NULL
523
522
        columns and if the index does not contain column prefix(es)
556
555
                UNIQUE INDEX, it must be converted to a secondary index. */
557
556
 
558
557
                if (dict_index_get_nth_col(index, 0)->mtype == DATA_SYS
559
 
                    || !my_strcasecmp(system_charset_info,
560
 
                                      index->name, "PRIMARY")) {
 
558
                    || !system_charset_info->strcasecmp(index->name, "PRIMARY")) 
 
559
    {
561
560
                        index = dict_table_get_next_index(index);
562
561
                }
563
562