~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/info_schema/info_schema_methods.cc

Merged Stewart from lp:~stewart-flamingspork/drizzle/show-database-collation

Show diffs side-by-side

added added

removed removed

Lines of Context:
635
635
    }
636
636
    else
637
637
    {
638
 
      HA_CREATE_INFO create;
639
 
      load_db_opt_by_name((*db_name)->str, &create);
 
638
      const CHARSET_INFO *cs= get_default_db_collation((*db_name)->str);
640
639
 
641
 
      if (store_schema_schemata(session, table, *db_name,
642
 
                               create.default_table_charset))
 
640
      if (store_schema_schemata(session, table, *db_name, cs))
643
641
        return(1);
644
642
    }
645
643