~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Mark Atwood
  • Date: 2011-11-11 18:23:18 UTC
  • mfrom: (2456.1.5 rf)
  • Revision ID: me@mark.atwood.name-20111111182318-skgcp9ce65fd2goa
mergeĀ lp:~olafvdspek/drizzle/refactor11

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