~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_schema.cc

  • Committer: Brian Aker
  • Date: 2010-11-02 15:38:34 UTC
  • mto: This revision was merged to the branch mainline in revision 1898.
  • Revision ID: brian@tangent.org-20101102153834-vbt1yeshxyznjmbj
Cast in order to avoid warning in ICC.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
bool statement::AlterSchema::execute()
37
37
{
38
38
  LEX_STRING *db= &session->lex->name;
39
 
  message::schema::shared_ptr old_definition;
 
39
  message::SchemaPtr old_definition;
40
40
 
41
41
  if (not validateSchemaOptions())
42
42
    return true;
45
45
 
46
46
  if (not check_db_name(session, schema_identifier))
47
47
  {
48
 
    std::string path;
49
 
    schema_identifier.getSQLPath(path);
50
 
    my_error(ER_WRONG_DB_NAME, MYF(0), path.c_str());
51
 
 
 
48
    my_error(ER_WRONG_DB_NAME, MYF(0), schema_identifier.getSQLPath().c_str());
52
49
    return false;
53
50
  }
54
51