~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/show_create_schema.cc

  • Committer: Brian Aker
  • Date: 2010-03-31 05:53:34 UTC
  • Revision ID: brian@gaz-20100331055334-yqqmzlgqb2xq1p5b
Mass overhaul to use schema_identifier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
bool statement::ShowCreateSchema::execute()
35
35
{
36
 
  if (check_db_name(&session->lex->name))
 
36
  SchemaIdentifier schema_identifier(string(session->lex->name.str, session->lex->name.length));
 
37
 
 
38
  if (not check_db_name(schema_identifier))
37
39
  {
38
 
    my_error(ER_WRONG_DB_NAME, MYF(0), session->lex->name.str);
 
40
    my_error(ER_WRONG_DB_NAME, MYF(0), schema_identifier.getSQLPath().c_str());
39
41
    return false;
40
42
  }
41
 
  bool res= mysqld_show_create_db(session, session->lex->name.str,
 
43
  bool res= mysqld_show_create_db(*session, schema_identifier,
42
44
                                  is_if_not_exists);
43
45
  return res;
44
46
}