~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/schema_engine.cc

  • Committer: Brian Aker
  • Date: 2011-03-28 02:46:21 UTC
  • Revision ID: brian@tangent.org-20110328024621-wtkdtlvdplqm0ybf
Shift CHARSET_INFO to charset_info_st

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
}
115
115
 
116
116
 
117
 
const CHARSET_INFO *StorageEngine::getSchemaCollation(const identifier::Schema &identifier)
 
117
const charset_info_st *StorageEngine::getSchemaCollation(const identifier::Schema &identifier)
118
118
{
119
119
  message::schema::shared_ptr schmema_proto= StorageEngine::getSchemaDefinition(identifier);
120
120
  if (not schmema_proto || not schmema_proto->has_collation())
121
121
                return default_charset_info;
122
122
  const std::string buffer= schmema_proto->collation();
123
 
  if (const CHARSET_INFO* cs= get_charset_by_name(buffer.c_str()))
 
123
  if (const charset_info_st* cs= get_charset_by_name(buffer.c_str()))
124
124
                return cs;
125
125
  errmsg_printf(error::ERROR, _("Error while loading database options: '%s':"), identifier.getSQLPath().c_str());
126
126
  errmsg_printf(error::ERROR, ER(ER_UNKNOWN_COLLATION), buffer.c_str());